janabeck/Annotald — Issue #1: codecs fix for Mac OS X UnicodeEncodeError causes UnicodeEncodeError on Linux
Author: janabeck
Created: 2011-10-12 04:33:19+00:00
State: open

This error now comes up running Annotald in Linux with the codecs fix for the saving in Mac OS X problem:

[12/Oct/2011:00:26:10] Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/cherrypy/_cpwsgi.py", line 168, in next
chunk = chunk.encode("ISO-8859-1")
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 5287-5292: ordinal not in range(256)

If I run it in Linux without codecs, Greek words don't get recognized since they aren't read as Unicode.

Maybe we should try UnicodeDammit from BeautifulSoup as a cross-platform solution?