Batanichek Batanichek - 1 year ago 80
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download