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

2007-02-08 Thread Kent Johnson
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

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

2007-02-08 Thread Eike Welk
The Kate editor has also modelines, similar to the python interpreter: http://kate-editor.org/article/katepart_modelines HTH, Eike. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

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

2007-02-08 Thread Paulino
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 > differen

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

2007-02-08 Thread Paulino
Yes I have that declaration in my script. Paulino > Send Tutor mailing list submissions to > tutor@python.org > > # -*- coding: iso-8859-1 -*- If you put this at the first line of your .py files (of course replace iso-8859-1 with whatever encoding you use) I think this should do the

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

2007-02-08 Thread Kent Johnson
Paulino wrote: > Hi everyone! > > I have some strings that include special characters, to be displayed in > widget labels ( PyQt4 ). > The output changes in diferent OS's due to diferent sys.stdout encoding > > Not only the labels in the GUI change, but the source file strings are > altered whe

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

2007-02-08 Thread Michael Lange
On Wed, 07 Feb 2007 17:30:26 + Paulino <[EMAIL PROTECTED]> wrote: > Hi everyone! > > I have some strings that include special characters, to be displayed in > widget labels ( PyQt4 ). > The output changes in diferent OS's due to diferent sys.stdout encoding > > Not only the labels in the GU

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

2007-02-07 Thread Paulino
Hi everyone! I have some strings that include special characters, to be displayed in widget labels ( PyQt4 ). The output changes in diferent OS's due to diferent sys.stdout encoding Not only the labels in the GUI change, but the source file strings are altered when I move from win to linux and