R - 字符串中的Shrugface表情符号

时间:2018-01-08 21:25:50

标签: r encoding character-encoding

我想说我想在R中打印耸耸肩表情符号。

如何获取字符串以忽略转义反斜杠,以包含"¯\_(ツ)_/¯",如下所示:

example <- "This is a test ¯\_(ツ)_/¯"

这样我就可以将其渲染为

utf8::utf8_print(example)
[1] "This is a test ‍♀️"

0 个答案:

没有答案