trouble w/ unicode file

Guilherme Salgado salgado at
Sun Jan 25 02:49:04 CET 2004

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:
#-*- coding: utf-8 -*-
x = 'ééééáááááííí'
print x, type(x)

Python 2.3.3 (#2, Jan  4 2004, 12:24:16)
>>> import bar
ééééáááááííí <type 'str'>

Thanks in advance,
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:

More information about the Python-list mailing list