I just saw a commit accidentally that adds iconv() support for the c99
\u escapes, which might or might not be accidental:
https://github.com/wch/r-source/commit/f19b4ae7715eea1b18ef8368b4c2849a578ade07
In any case, this is great, and very useful to have cross-platform for
it. Thank you!
Would it
I am wondering if it would make sense to produce \u escaped strings in
deparse() for UTF-8 input. Currently we have (in R-devel):
x <- "G\u00e1bor"
Sys.setlocale("LC_ALL", "C")
#> [1] "C/C/C/C/C/en_US.UTF-8"
deparse(x)
#> [1] "\"Gbor\""
charToRaw(deparse(x))
#> [1] 22 47 3c 55 2b 30 30 45 31 3e