Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smartquotes cause error in encoding as quoted printable #77

Closed
jimhester opened this issue Mar 10, 2017 · 2 comments

Comments

@jimhester
Copy link
Member

commented Mar 10, 2017

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
@zachmaurer

This comment has been minimized.

Copy link

commented Apr 27, 2017

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!

@jimhester

This comment has been minimized.

Copy link
Member Author

commented 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")

@jimhester jimhester added the bug label Aug 13, 2019

@jimhester jimhester closed this in 9292ab7 Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.