You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Smartquotes cause error in encoding as quoted printable #77
quoted_printable_encode("\u2018")
#> Error in vapply(x, function(xx) fun(xx), character(1)) :#> values must be length 1,#> but FUN(X[[1]]) result is length 3
For what it's worth, I also got a similar error when sending content that used the character "ç".
quoted_printable_encode("ç")
# Error in vapply(x, function(xx) fun(xx), character(1)) :
# values must be length 1,
# but FUN(X[[1]]) result is length 2
Also, just wanted to say, I love gmailr -- a really great package. Thank you so much!
Activity
zachmaurer commentedon Apr 27, 2017
For what it's worth, I also got a similar error when sending content that used the character "ç".
Also, just wanted to say, I love gmailr -- a really great package. Thank you so much!
jimhester commentedon Apr 27, 2017
One easy way to convert these characters is is convert them to ascii equivalents with
stringi::stri_trans_general(x, "Latin-ASCII")