unicode in multi-line strings
Jiri Barton
jbar at hosting4u.cz
Thu Sep 18 11:04:41 EDT 2008
Hello,
I have a problem with international characters in multi-line strings.
Works: '''á'''
Works: '''
a'''
Does not work: '''
á'''
By does not work I mean the infamous
'ascii' codec can't encode character u'\xe1' in position 4: ordinal not
in range(128)
I'm using Ubuntu 8.04 with Python 2.5. It does not work in terminal,
from scripts, or from scripts with the encoding specified at the top.
Making the string unicode (u''' ... ''') does not change anything.
It could be an interpreter issue but I didn't know where else I should
turn for help.
Thank you!
Jiri
More information about the Python-list
mailing list