Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unexpected characters cause fatal error #48

Open
ericsoco opened this issue Oct 2, 2015 · 0 comments
Open

Unexpected characters cause fatal error #48

ericsoco opened this issue Oct 2, 2015 · 0 comments

Comments

@ericsoco
Copy link

ericsoco commented Oct 2, 2015

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant