1480: ERROR Exception thrown

guansh*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 6, 2010
18:32:33 ERROR Exception thrown for user testuser1 at 
http://192.168.11.126/api/json/reviewrequests/19/diff/new/

'utf8' codec can't decode byte 0xb0 in position 39: unexpected code byte
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\django-1.1.1-
py2.5.egg\django\core\handlers\base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "c:\python25\lib\site-packages\django-1.1.1-
py2.5.egg\django\views\decorators\cache.py", line 45, in _wrapped_view_func
    add_never_cache_headers(response)
  File "c:\python25\lib\site-packages\django-1.1.1-
py2.5.egg\django\utils\cache.py", line 119, in add_never_cache_headers
    patch_response_headers(response, cache_timeout=-1)
  File "c:\python25\lib\site-packages\django-1.1.1-
py2.5.egg\django\utils\cache.py", line 108, in patch_response_headers
    response['ETag'] = '"%s"' % md5_constructor(response.content).hexdigest
()
  File "c:\python25\lib\site-packages\Djblets-0.5.6-
py2.5.egg\djblets\webapi\core.py", line 264, in _get_content
    content = adapter.encode(self.api_data)
  File "C:\Python25\lib\site-packages\simplejson-2.0.9-py2.5-
win32.egg\simplejson\encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "C:\Python25\lib\site-packages\simplejson-2.0.9-py2.5-
win32.egg\simplejson\encoder.py", line 260, in iterencode
    return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 39: 
unexpected code byte 




*NOTE: Do not post confidential information in this bug report.*

What version are you running?
1.1 alpha 2

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


What steps will reproduce the problem?
1.uploading the diff
2.
3.

What is the expected output? What do you see instead?


What operating system are you using? What browser?
win ie7

Please provide any additional information below.

how to support the chinese input?
david
#1 david
It should work as long as your browser encoding is sending utf-8. If you're sending 
Big5, it's going to have problems.
  • +UserError