简体   繁体   English

R 读取。csv 编码

[英]R read.csv encoding

I am trying to read my data with this code:我正在尝试使用以下代码读取我的数据:

List <- read.csv("List.csv", sep = ";")

My data "Yıldız" shows like Yýldýz我的数据“Yıldız”显示为 Yyldýz

When I use this code:当我使用此代码时:

List <- read.csv("List.csv", sep = ";" , encoding = 'UTF-8')

It shows like this: Y�ld�z它显示如下:Y�ld�z

I search a lot before I wrote here but none of them helped me.我在这里写之前搜索了很多,但没有一个对我有帮助。 Can you help me fix this?你能帮我解决这个问题吗? I use turkish language.我使用土耳其语。

Thanks谢谢

That i found is you need to use ISO-8859-9 for encoding.我发现你需要使用 ISO-8859-9 进行编码。 https://en.wikipedia.org/wiki/Wikipedia:Turkish_characters https://en.wikipedia.org/wiki/Wikipedia:Turkish_characters

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM