在R中编写引用可打印的电子邮件 [英] Encode quoted-printable email in R
本文介绍了在R中编写引用可打印的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有使用R?的电子邮件编码可打印文本的包或功能?
Is there package or function for encode quoted-printable text from email using R?
例如
Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
=CA=EE=EB=EB=E5=E3=E8!
如何获取string =Коллеги!在R?
How can I get string ="Коллеги!" in R?
推荐答案
编码
> base 包应该做这个工作。例如:
The Encoding
from the base
package should do the job. For example:
x <- "fa\xE7ile"
Encoding(x)
Encoding(x) <- "latin1"
x
将返回:
[1] "façile"
您的电子邮件中的文字将只是一个字符串向量,因此您可以随意对其进行编码。
Your text from email would be simply a string vector so you can encode it as you please.
这篇关于在R中编写引用可打印的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文