open-reblock / localco.de

http://beta.openreblock.org
3 stars 2 forks source link

Unexpected characters cause fatal error #48

Open ericsoco opened 8 years ago

ericsoco commented 8 years ago

Entering non-ascii characters (like quotes cut and pasted from MS Word) into the project upload page cause a fatal error when Start Calculation is pressed.

UnicodeEncodeError at /reblock/review/ 'ascii' codec can't encode character u'\u201c' in position 0: ordinal not in range(128) Request Method: POST Request URL: http://ubuntu.local:8000/reblock/review/ Django Version: 1.4 Exception Type: UnicodeEncodeError Exception Value:
'ascii' codec can't encode character u'\u201c' in position 0: ordinal not in range(128) Exception Location: /home/ericsoco/localcode/reblock/views.py in review, line 261 Python Executable: /home/ericsoco/localcode/venv/bin/python Python Version: 2.7.6 Python Path:
['/home/ericsoco/localcode', '/home/ericsoco/localcode/venv/lib/python2.7', '/home/ericsoco/localcode/venv/lib/python2.7/plat-x86_64-linux-gnu', '/home/ericsoco/localcode/venv/lib/python2.7/lib-tk', '/home/ericsoco/localcode/venv/lib/python2.7/lib-old', '/home/ericsoco/localcode/venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/ericsoco/localcode/venv/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/home/ericsoco/localcode'] Server time: Fri, 2 Oct 2015 10:00:46 -0700