Labels: Type-Defect Priority-Medium
New issue 2309 by bo.bjorn...@gmail.com: infobox throws UnicodeEncodeError
when user has non US-ASCII characters in name
* NOTE: Do not post confidential information in this bug report. *
* If you need immediate support, please contact *
* reviewbo...@googlegroups.com *
What version are you running?
What's the URL of the page containing the problem?
/users/<some user with non US-ASCII characters in full name>/infobox/
What steps will reproduce the problem?
1. Create a user with non US-ASCII characters in either first name or last
name or both.
2. Submit a review as this user.
3. Navigate to this review.
4. Mouse over the submitters name to get the pop-up infobox.
What is the expected output? What do you see instead?
Expected output is the infobox with the users details (user name, full
name, user email, etc), actual output is a "Something broke (error 500)"
What operating system are you using? What browser?
Reviewboard is served by a Arch Linux VM, via apache. Browser is Chromium
(14.0.835.186) and Firefox (6.0.2) on Arch Linux.
Please provide any additional information below.
This would not bother me as much as we do not really use this feature
(small in-house review board at work), the annoying thing is that it sends
me an e-mail every time someone accidentally mouses over pretty much any of
our user names - we're Norwegians, so names tend to contain strange and
unusual letters ;)
Exception with backtrace:
Internal Server Error: /users/bjorn/infobox/
Traceback (most recent call last):
line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
line 21, in _check
return view_func(*args, **kwargs)
line 1166, in user_infobox
line 68, in set_etag
response['ETag'] = etag
line 533, in __setitem__
header, value = self._convert_to_ascii(header, value)
line 522, in _convert_to_ascii
value = value.encode('us-ascii')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in
position 2: ordinal not in range(128), HTTP response headers must be in
You received this message because you are subscribed to the Google Groups
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at