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>