[Tutor] Displaying characters

Paulo Baptista as1116522 at sapo.pt
Tue Aug 12 21:04:52 EDT 2003


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.

----- Original Message -----
From: "Jorge Godoy" <godoy at metalab.unc.edu>
To: "as1116522" <as1116522 at sapo.pt>
Cc: <tutor at python.org>
Sent: Monday, August 11, 2003 9:58 PM
Subject: Re: [Tutor] Displaying characters


as1116522 <as1116522 at sapo.pt> writes:

> Hi, is there any way to display portuguese characters
> like: "ç", "á", "é" in windows command line?

I just print them and it works.

In Windows, Linux and FreeBSD. It is also true for wxPython
applications.


Some silly phrases:

>>> print 'Olá! Como estão as coisas aí em Portugal?'
Olá! Como estão as coisas aí em Portugal?
>>> print 'Aqui no Brasil estão muito frias. O inverno está bem severo.'
Aqui no Brasil estão muito frias. O inverno está bem severo.
>>> print 'Espero que os exemplos tenham ajudado. Uma palavra com "ç":
maçã.'
Espero que os exemplos tenham ajudado. Uma palavra com "ç": maçã.
>>>


See you,
--
Godoy.     <godoy at metalab.unc.edu>

_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor




More information about the Tutor mailing list