Displaying 1 result from an estimated 1 matches for "53f8".
Did you mean:
53,8
2014 Jul 28
1
Parsing and deparsing of escaped unicode characters
...e escaped using a backslash followed by a lowercase "u" and a 4 digit
hex code. However when deparsing a character vector in R on Windows,
the non-latin characters get escaped as "<U+" followed by their 4
digit hex code and ">":
> x <- "I like \u5BFF\u53F8"
> cat(x)
I like ??
> src <- deparse(x)
> cat(src)
"I like <U+5BFF><U+53F8>"
Same thing happens on linux when we disable UTF8:
Sys.setlocale("LC_ALL", "C")
x <- "I like \u5BFF\u53F8"
nchar(x) #9, seems OK
cat(deparse(x))
&quo...