[Tutor] same output on diferent sys.stdout.encodings
paulino1 at sapo.pt
Thu Feb 8 16:35:22 CET 2007
Yes that is the problem.
But I canot control all the the encodings in every PC that the script is
to be run...
Kent Johnson escreveu:
> I think the problem you are having is with the source code encoding,
> not sys.stdout.encoding. Probably your editor on linux expects a
> different file encoding than what you are using in Windows. Your
> windows editor is probably using cp1252; perhaps the linux editor
> expects utf-8.
> You need to get the editors to agree on the source code encoding. Then
> put the coding declaration at the top of the file as Michael suggested.
More information about the Tutor