Skip to content

Smartquotes cause error in encoding as quoted printable #77

Closed

Description

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

Activity

  1. zachmaurer commented on Apr 27, 2017

    @zachmaurer

    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!

  2. jimhester commented on Apr 27, 2017

    @jimhester
    MemberAuthor

    One easy way to convert these characters is is convert them to ascii equivalents with stringi::stri_trans_general(x, "Latin-ASCII")

  3. added
    bugan unexpected problem or unintended behavior
    on Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions