ENC: how i use 'ã' in python???

Alves, Carlos Alberto - Coelce calves at coelce.com.br
Wed Jun 19 07:30:14 EDT 2002


Python accept that, just represent it as hex. Look below:
>>> s='â'
>>> s
'\xe2'
>>> print s
â
Another work around, is to use the chr() function, just like that:
chr(226)=>â

> -----Mensagem original-----
> De: jubafre at zipmail.com.br [mailto:jubafre at zipmail.com.br] 
> Enviada em: quarta-feira, 19 de junho de 2002 01:39
> Para: python-list at python.org
> Assunto: how i use 'ã' in python???
> 
> 
> i´m brazilian, and in my laguage(Portguese) there are many 
> other caracters
> how á, ã, â and a string in python doesn´t support this
> how i can use??? have a import module for this???
> 
> BRASILEIROS DA LISTA COMO VCS CONSEGUEM USAR ACENTO NO PYTHON??
> 
> for exmple:
> s='ã'
> doesn´t work?why??
> 
> 
> Juliano Freitas
> www.gebrasil.hpg.com.br
> 
> 
> 
> ------------------------------------------
> Use o melhor sistema de busca da Internet
> Radar UOL - http://www.radaruol.com.br
> 
> 
> 
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020619/c7fc5cda/attachment.html>


More information about the Python-list mailing list