[Tutor] Displaying characters

Magnus Lyckå magnus at thinkware.se
Wed Aug 13 02:23:22 EDT 2003


At 20:04 2003-08-12 +0100, Paulo Baptista wrote:
>Thanks for your help but...
>Well, yes they print, if you do it from the interactive shell, but if you do
>it with a file like c:\python xpto.py this characters wont show up, instead
>they'll print symbols. I'm trying this with windows, but as far as I can
>remember this worked fine with linux.

Python version? From 2.3 you should state what encoding you
use in the beginning of the file. See
http://www.python.org/doc/2.3/whatsnew/section-encodings.html



--
Magnus Lycka (It's really Lyckå), magnus at thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The Agile Programming Language 




More information about the Tutor mailing list