trouble w/ unicode file
Guilherme Salgado
salgado at freeshell.org
Sat Jan 24 20:49:04 EST 2004
More information about the Python-list mailing list
Sat Jan 24 20:49:04 EST 2004
- Previous message (by thread): trouble w/ unicode file
- Next message (by thread): trouble w/ unicode file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi there, I have a python source file encoded in unicode(utf-8) with some iso8859-1 strings. I've encoded this file as utf-8 in the hope that python will understand these strings as unicode (<type 'unicode'>) strings whithout the need to use unicode() or u"" on these strings. But this didn't happen. Am I expecting something that really shoudn't happen or we have a bug? This is the test i've made: $cat bar.py #-*- coding: utf-8 -*- x = 'ééééáááááííí' print x, type(x) $python Python 2.3.3 (#2, Jan 4 2004, 12:24:16) [...] >>> import bar ééééáááááÃÃà <type 'str'> Thanks in advance, []'s Guilherme Salgado -- This email has been inspected by Hans Blix, who has reported that no weapons of mass destruction were used in its construction. Read his report here: <http://www.un.org/apps/news/infocusnewsiraq.asp?NewsID=414&sID=6>
- Previous message (by thread): trouble w/ unicode file
- Next message (by thread): trouble w/ unicode file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list