标签: r encoding character-encoding
我想说我想在R中打印耸耸肩表情符号。
如何获取字符串以忽略转义反斜杠,以包含"¯\_(ツ)_/¯",如下所示:
"¯\_(ツ)_/¯"
example <- "This is a test ¯\_(ツ)_/¯"
这样我就可以将其渲染为
utf8::utf8_print(example) [1] "This is a test ♀️"