print u"\u0432": why is this so hard? UnciodeEncodeError

"Martin v. Löwis" martin at v.loewis.de
Sat Apr 10 04:28:37 EDT 2004


David Eppstein wrote:
> A system that requires me to manually set the LANG environment variable 
> is no better than a system that requires me to manually define an 
> encoding once in Python.  

Perhaps: depending on your criteria to judge "no better".
It does demonstrate that Python can be made to determine the terminal's
encoding, without changing any kind of Python or C source code.

Regards,
Martin




More information about the Python-list mailing list