Skip to content

UnicodeDecode Exception #551

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2014
Merged

UnicodeDecode Exception #551

merged 1 commit into from
Apr 3, 2014

Conversation

GomZik
Copy link
Contributor

@GomZik GomZik commented Feb 18, 2014

Environment:

Request Method: GET
Request URL: http://localhost:8000/events/events/ed/

Django Version: 1.4.3
Python Version: 2.7.4

Traceback:
File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.             response = middleware_method(request, response)
    
    File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/middleware.py" in process_response
  2.         new_response = panel.process_response(request, response)
    
    File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py" in process_response
  3.             query['form'] = SQLSelectForm(auto_id=None, initial=copy(query))
    
    File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py" in init
  4.         initial['hash'] = self.make_hash(initial)
    
    File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py" in make_hash
  5.     items = [force_text(' '.join(item.splitlines())) for item in items]
    

Exception Type: UnicodeDecodeError at /events/events/ed/
Exception Value: 'ascii' codec can't decode byte 0xd0 in position 36: ordinal not in range(128)

The string that could not be encoded/decoded was: ` = '������

Fix UnicodeDecodeError exception when sql params has unicode characters
aaugustin added a commit that referenced this pull request Apr 3, 2014
Fix UnicodeDecodeError in SQL panel.
@aaugustin aaugustin merged commit 568568c into django-commons:master Apr 3, 2014
ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
Fix UnicodeDecodeError in SQL panel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants