R中的字符编码

Strings、Encodings in R

Xianying Tan

2018/03/18

费了不少功夫,不出意外,总算是彻底解决了data.table中文支持的问题(PR#2678PR#2566)、 PR#3451PR#3849PR#3850。散乱地写下些学习到的点,供以后参考:

学习笔记

Character-encoding-issues: However, if they need to be interpreted as characters or output at C level then it would normally be correct to ensure that they are converted to the encoding of the current locale: this can be done by accessing the data in the CHARSXP by translateChar rather than by CHAR.

其他

主要可供参考的资料