Appsilon / shiny.i18n

Shiny applications internationalization made easy
https://appsilon.github.io/shiny.i18n/
Other
169 stars 38 forks source link

Cyrillic comes out as unicode #36

Closed oloverm closed 4 years ago

oloverm commented 4 years ago

This might be an issue with Shiny/R, rather than this package, sorry if so. I haven't dealt with encoding stuff before so this is all new to me.

I'm trying to translate from English to Russian. I've got the translator working fine when I tested it using the Latin alphabet. However, now that I've loaded in an actual Russian translation CSV, I've got trouble. These six unicode characters should say Привет (hello).

cyrillic text shown as asshole unicode

Is it this package that's showing the unicode, or do you guys know how to show it as Cyrillic?

oloverm commented 4 years ago

Ok, as I kind of suspected, it wasn't really an issue with shiny.i18n. It was a locale issue, I fixed it with Sys.setlocale("LC_ALL", "Russian_Russia"). I found the Windows locale to use on this website. Apparently it's a bit simpler on Mac/Unix.

dokato commented 4 years ago

Thank you @oloverm for reporting that, indeed we should mention in the readme to be careful with local language settings while reading the data.