You must use UTF8
u"special chars".encode('utf8')
On Jun 4, 12:22 pm, dodobas <[email protected]> wrote:
> As soon as I try to use some non ascii char on RSS output, this
> happens (slightly, trimmed the top):
> ...
> ...
> File "/usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.py",
> line 309, in characters
> writetext(self._out, content)
> File "/usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.py",
> line 188, in writetext
> stream.write(escape(text, entities))
> File "/usr/lib/python2.6/codecs.py", line 351, in write
> data, consumed = self.encode(object, self.errors)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position
> 82: ordinal not in range(128)
>
> I'm using 1.63.5, what to do?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---