#18561: HttpResponse.tell() fails if response contains non ascii characters --------------------------------+------------------------------------------ Reporter: | Owner: nobody matsevich.devel@… | Status: new Type: Bug | Version: 1.4 Component: HTTP handling | Keywords: tell, HttpResponse, response Severity: Normal | Has patch: 0 Triage Stage: Unreviewed | UI/UX: 0 Easy pickings: 0 | --------------------------------+------------------------------------------ If HttpResponse instance contains non ascii characters (e.g. cyrillic), tell() method fails. Error otput: {{{ UnicodeEncodeError at /
'ascii' codec can't encode characters in position 2010-2015: ordinal not in range(128) Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.4 Exception Type: UnicodeEncodeError Exception Value: 'ascii' codec can't encode characters in position 2010-2015: ordinal not in range(128) Exception Location: /usr/lib/python2.7/site- packages/django/http/__init__.py in tell, line 732 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/usr/bin', '/usr/lib/python2.7/site-packages/django_annoying-0.7.4-py2.7.egg', '/usr/lib/python2.7/site-packages/selenium-2.24.0-py2.7.egg', '/usr/lib/python2.7/site-packages/South-0.7.5-py2.7.egg', '/home/ghost/git/django-hello-world/django', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/PIL', '/usr/lib64/python2.7/site-packages/pbs', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info'] }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18561> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.