1
A
回答
0
## x is intended to be in latin1
x <- "fa\xE7ile"
Encoding(x)
Encoding(x) <- "latin1"
x
xx <- iconv(x, "latin1", "UTF-8")
Encoding(c(x, xx))
c(x, xx)
Encoding(xx) <- "bytes"
xx # will be encoded in hex
cat("xx = ", xx, "\n", sep = "")
http://www.inside-r.org/r-doc/base/Encoding
https://stat.ethz.ch/R-manual/R-devel/library/base/html/Encoding.html
相关问题
- 1. R脚本文件编码(R Studio)
- 2. 如何在R中对脚本进行脚本编程
- 3. 在php脚本中的R脚本
- 4. 在python中使用R脚本编写的R
- 5. 在PHP数据库备份脚本中编码和转义
- 6. 从C代码中调用R脚本
- 7. 如何使用脚本定义(sdef)编译AppleScript脚本库(scptd)
- 8. 定义在行动脚本
- 9. 编程中的R - 输出R中控制台比脚本
- 10. 如何在shell脚本中编写用户定义的选项?
- 11. php在脚本中定义了密码,用户名,安全
- 12. R中的文本编码问题
- 13. 页脚中的自定义脚本
- 14. 在prolog脚本中定义列表
- 15. 在php脚本中定义变量
- 16. 在后台脚本中,chrome.runtime未定义
- 17. 在HTML中定义的加载脚本
- 18. 如何在CakePHP中定义脚本?
- 19. 在bash脚本中定义变量
- 20. chrome.runtime.onMessage.addListener在内容脚本中未定义
- 21. iframe在Greasemonkey脚本中未定义
- 22. 在RichFaces脚本中未定义jQuery
- 23. 在php脚本中未定义
- 24. 编写自定义内核svm在R
- 25. 编码中的R
- 26. 编码中的R
- 27. R - 从硬编码脚本移动到函数
- 28. Power BI:获取数据R脚本编码
- 29. 脚本编译C代码
- 30. 如何编码此脚本?