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
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
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
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
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
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
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