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

Scott Schwartz "schwartz+ at usenet " at bio.cse.psu.edu
Tue Apr 13 23:22:06 EDT 2004


=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <martin at v.loewis.de> writes:
> > Why is Python not respecting my locale?
> 
> It is: however, your locale only tells Python the encoding of your
> terminal, not the encoding of an arbitrary file you may write to.

That's not the usual interpretation of locale.  It's not about
terminals, it's about everything, especially files.




More information about the Python-list mailing list