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

"Martin v. Löwis" martin at v.loewis.de
Fri Apr 9 06:23:11 EDT 2004


Hye-Shik Chang wrote:
> The encoding of darwin terminal can be discovered by the routine
> currently we have.
> 
> perky$ LC_ALL=ko_KR.UTF-8 python

But that requires the user to set LC_ALL correctly. I'd rather
prefer if the standard installation of the system is supported,
where LC_ALL is not set. In particular, Terminal.App supports
changing its encoding through Settings, and I would like Python
to detect the current settings at startup time.

Regards,
Martin




More information about the Python-list mailing list