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
Closed

Smartquotes cause error in encoding as quoted printable #77

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

Comments

@jimhester
Copy link
Member

@jimhester jimhester 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
Copy link

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

Loading

@jimhester
Copy link
Member Author

@jimhester jimhester 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")

Loading

@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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants