bellroy / lesswrong

Less Wrong platform
http://lesswrong.org/
Other
49 stars 23 forks source link

Encoding issues on edits/.rss page #429

Open frediy opened 9 years ago

frediy commented 9 years ago

From wjmo...@gmail.com on August 14, 2012 16:40:42

Only on edits/.rss, not the /edits html page I can't reproduce on my (DP) dev env.

Module _edit_xml:78 in render_body << __M_writer(u'\n <pre>\n ')

SOURCE LINE 18

        __M_writer(websafe(saxutils.escape("\n".join(thing.diff[2:]), entities)))
        __M_writer(u'\n    &lt;/pre&gt;\n  </description>\n</item>\n')
        return ''>>  __M_writer(websafe(saxutils.escape("\n".join(thing.diff[2:]), entities)))

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 251: ordinal not in range(128)

Original issue: http://code.google.com/p/lesswrong/issues/detail?id=331