Yes that is the problem. But I canot control all the the encodings in every PC that the script is to be run...
Paulino 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. > > Kent > > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor