Python nuube needs Unicode help
Gabriel Genellina
gagsl-py at yahoo.com.ar
Thu Jan 11 23:09:45 EST 2007
At Thursday 11/1/2007 20:42, gheissenberger at gmail.com wrote:
> Progress! You managed to change the error message.
>
> File "./acc_test_script_generator.py", line 106, in loadData
> print u.encode('utf-8')
>AttributeError: Utterance instance has no attribute 'encode'
>
>I'm missing somethign really obvious here, but I don't know what it
>is...
Then you're not "printing a line from a file we are parsing", which
should be a string or unicode object. You're printing some
"Utterance" instance; probably it has a __str__ method, and there,
you're mixing unicode+strings.
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the Python-list
mailing list