Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2377 by HTTP 500 error in the tooltip on hover of a user name with accented characters in name

* NOTE: Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*                             *

What version are you running?

What's the URL of the page containing the problem?

What steps will reproduce the problem?
1. In the Updates section after the description of the review request, let your mouse cursor over the name of someone who updated the request. If the name contains accented characters such as "é" or "ç", an HTTP 500 error is displayed in the tooltip.

What is the expected output? What do you see instead?
Expected: The user information.
Actually: An HTTP 500 error.

What operating system are you using? What browser?
Windows 7 Enterprise Service Pack 1 x64
Google Chrome v15.0.874.106

Please provide any additional information below.
Here is some parts of the HTTP 500 error:


Request Method: GET
Request URL:

Django Version: 1.3
Python Version: 2.6.6
Installed Applications:
Installed Middleware:

File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6-py2.6.egg/reviewboard/accounts/" in _check
  19.             return login_required(view_func)(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.10-py2.6.egg/djblets/auth/" in _checklogin
  46.             return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6-py2.6.egg/reviewboard/reviews/" in user_infobox
  1166.     set_etag(response, etag)
File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.10-py2.6.egg/djblets/util/" in set_etag
  68.     response['ETag'] = etag
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/http/" in __setitem__
  528.         header, value = self._convert_to_ascii(header, value)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/http/" in _convert_to_ascii
  517.                     value = value.encode('us-ascii')

Exception Type: UnicodeEncodeError at /users/aturgeon/infobox/
Exception Value: 'ascii' codec can't encode character u'\xe9' in position 2: ordinal not in range(128), HTTP response headers must be in US-ASCII format


/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/http/ in _convert_to_ascii
            + '\n\n' + self.content
    def _convert_to_ascii(self, *values):
        """Converts all values to ascii strings."""
        for value in values:
            if isinstance(value, unicode):
                    value = value.encode('us-ascii') ...
                except UnicodeError, e:
e.reason += ', HTTP response headers must be in US-ASCII format'
                value = str(value)
            if '\n' in value or '\r' in value:
▶ Local vars
Variable        Value
u'Am\ 09:48:26:1315518092:True')
<django.http.HttpResponse object at 0x7fa062618b10>
UnicodeEncodeError('ascii', u'Am\ 09:48:26:1315518092:True', 2, 3, 'ordinal not in range(128)')
u'Am\ 09:48:26:1315518092:True'


Unicode error hint

The string that could not be encoded/decoded was: Amélie:T

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to