You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Rapache (1.2.5) I am trying to read an excel file with a Δ character in it. I then write the content back out to csv but end up with "<U+0394>". I found that if I ran the line below before my code, then the csv would get the correct Δ character.
Thanks. The real issue is that the rapache locale was different than the default system locale. Rapache was started with an init.d script that didn't fetch the LANG environment variable.
Doing this in the init.d script for the few linux flavors we work with fixed the issue:
Using Rapache (1.2.5) I am trying to read an excel file with a Δ character in it. I then write the content back out to csv but end up with "<U+0394>". I found that if I ran the line below before my code, then the csv would get the correct Δ character.
Sys.setlocale("LC_ALL", "en_US.utf8")
I came across this old post that I don't think answers the question:
http://stackoverflow.com/questions/20577764/set-locale-to-system-default-utf-8
I am wondering what the best way is to set UTF-8 instead of "C" on an rapache server (given I may use Ubuntu, Centos and other linux flavors).
Thanks,
Brian
The text was updated successfully, but these errors were encountered: