G
Guilherme Salgado
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)
[...]ééééáááááÃÃà <type 'str'>
Thanks in advance,
[]'s
Guilherme Salgado
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)
[...]ééééáááááÃÃà <type 'str'>
Thanks in advance,
[]'s
Guilherme Salgado