Batanichek Batanichek - 1 month ago 10
R Question

Encode quoted-printable email in R

Is there package or function for encode quoted-printable text from email using R?

For example

Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable


How can I get string ="Коллеги!" in R?


The Encoding from the base package should do the job. For example:

x <- "fa\xE7ile"
Encoding(x) <- "latin1"

would return:

[1] "façile"

Your text from email would be simply a string vector so you can encode it as you please.