【发布时间】:2018-01-06 00:21:14
【问题描述】:
假设我有一个字符串,其中包含表示表情符号的字节:
string <- "This is a test. U+1F600"
我怎样才能把它变成
string <- "This is a test. \U0001F600"
这样我就可以把它渲染成
utf8_print("This is a test \U0001F600")
[1] "This is a test ????"
【问题讨论】:
标签: r encoding character-encoding