[pyar] Pelando con unicode
Daniel
dmlistapython en gmail.com
Lun Sep 26 17:25:58 ART 2011
> ok. cambia todos los open(...) por codecs.open(...,
> "encoding-de-ese-archivo")
¿cómo se que enconding tiene?
Programa ejecutado: http://pastebin.com/MwKbt6SL
Traceback (most recent call last):
File "prueba3.py", line 18, in <module>
linea = archivo.readline()
File "/usr/lib64/python2.7/codecs.py", line 675, in readline
return self.reader.readline(size)
File "/usr/lib64/python2.7/codecs.py", line 530, in readline
data = self.read(readsize, firstline=True)
File "/usr/lib64/python2.7/codecs.py", line 477, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position
37: invalid continuation byte
--
Daniel Malisani
More information about the pyar
mailing list