[Tutor] same output on diferent sys.stdout.encodings

Kent Johnson kent37 at tds.net
Thu Feb 8 17:09:05 CET 2007

Paulino wrote:
> Yes that is the problem.
> But I canot control all the the encodings in every PC that the script is 
> to be run...

The problem is in your *editor* not in Python. You have to control the 
encoding the *editor* expects. At least that is my guess - your 
complaint is that you can't find a way to represent the character that 
displays correctly in editors on both platforms.

In other words, if you have a Python file that includes characters in 
cp1252 and you open the file in an editor that expects utf-8, it will 
not display correctly.


More information about the Tutor mailing list