a [1] "รฎรนรค" > c...">

Using Hebrew Characters in a String

I would like to use Hebrew characters in a string in R. I used the following:

> a<-c("ืžืฉื”") > a [1] "รฎรนรค" > class (a) [1] "character" 

As you can see, I get Jibbrish when outputting the contents of a string or using any functions. How can I use Hebrew characters?

+2
source share
1 answer

Thanks to all the comments, here is the answer: If I use it as is, I get Jibbrish:

 > a<-"ืžืฉื”" > a [1] "รฎรนรค" 

However, if I encode it in UTF8, I get the correct result:

 > a<-enc2utf8( "ืžืฉื”") > a [1] "ืžืฉื”" 

I want a way to do this without coding.

+3
source

Source: https://habr.com/ru/post/1247948/


All Articles