R
R
rokkiler2016-05-10 11:01:08
R
rokkiler, 2016-05-10 11:01:08

Why doesn't R read Cyrillic in tables?

I'm trying to import a .csv table into R studio, I get an error about the content of a multi-byte string, in general it doesn't read Cyrillic, with tables where Latin characters are fine, actually how to fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya Kashnitsky, 2016-08-02
@ikashnitsky

# to read cyrillic
Sys.setlocale("LC_CTYPE", "russian")

A
Alexey Seleznev, 2020-08-06
@selesnow

Try using the `encoding` argument, and specify in it the encoding of the file from which you are reading data.

read.csv("http://home.ustc.edu.cn/~lanrr/data.csv", encoding = "UTF-8")
read.csv("http://home.ustc.edu.cn/~lanrr/data.csv", encoding = "1251")

V
Vladimir, 2015-06-25
@azrail_dev

In oracle sql developer works correctly. Remove the greater than and less than signs and write between
docs.oracle.com/cd/B28359_01/server.111/b28286/con...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question