标签: r utf-8 rstudio iconv
我无法将文本转换为utf8进行某些文本分析。
air <- read.csv(file.choose(), fileEncoding = "utf-8") sacred_texts <- iconv(air$text, to = "utf-8")
我得到了错误
iconv(air $ text,to =“ utf-8”)错误:在字符串中嵌入nul: 'b \ 0 \ 034 @ JetBlue:我们的机队在运行。 \ 0 \ 035 p \ 037 \ 030 \ 022'