Terry Reedy wrote: > On 4/28/2014 2:33 AM, Kev Dwyer wrote: > >> Hello Terry, >> >> Regarding your second point, my mistake in not checking the link: >> I'd seen a similar one elsewhere and assumed they were the same. >> >> This link should work: >> http://msdn.microsoft.com/en-us/library/hzz3tw78 >> >> >> As to your first point, you're right, it seems setlocale(locale.LC_ALL, >> 'en_US.UTF-8') doesn't work on Windows. > > From what I read of the link above and > http://msdn.microsoft.com/en-US/goglobal/bb896001.aspx > given therein, I am going to guess that .UTF-8 is not supported for any > language. > >> It seems the locale name needs to be one of the aliases provided >> at http://msdn.microsoft.com/en-us/library/39cwe7zf, so for example >> locale.setlocale(locale.LC_ALL, 'usa') returns >> 'English_United States.1252'. >> >> Do you know if this is something people programming on Windows >> should just be aware of, or is there a case for a hint of some >> kind in the locale module documentation? > > *Definitely the latter. Perhaps you could open an issue with a specific > suggestion. >
Thanks! I'll try to write something up this weekend. -- https://mail.python.org/mailman/listinfo/python-list