Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Emacs IME, locale, encodings, R, aarrrrgggghhhh!!!!



> house.names <- c("name", "平屋", "どこかのマンション", "湯河原マンション", "熱海マンション")

>> Encoding(house.names)
> [1] "unknown" "unknown" "unknown" "unknown" "unknown"

> [1] "unknown" "UTF-8"   "UTF-8"   "UTF-8"   "UTF-8"  

That looks like the key difference to zoom in on, doesn't it. R can see
them as UTF-8 strings in batch mode, but not when it is a child process
of emacs. Can you print the env variables, from within the R script, to
see if they are any different when in the child process?

Also see https://stackoverflow.com/a/23699701/841830  "The Encoding
function returns unknown if a character string has a "native encoding"
mark or if it's in ASCII."

Darren


Home | Main Index | Thread Index