الثلاثاء، 24 ديسمبر 2013

Non-ASCII chars in python file deletes other chars

Turns out the locale had to be set to sv_SE.utf8 rather than sv_SE or sv_SE.UTF-8. If you're from another country than Sweden (which statistically seems reasonable to assume) you obviously have to find the right locale name for your language and location.

Then just do this to generate (optional) your locale, and set it:

locale-gen sv_SE.utf8locale-update LANG=sv_SE.utf8reboot

Replace LANG for any other environment variables you need to set. This will create/modify the file /etc/default/locale.


View the original article here

ليست هناك تعليقات:

إرسال تعليق