500错误后页面显示信息乱码
提交主题报错
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1809, in wrapper
return method(self, *args, **kwargs)
File "/www/v2ex/galaxy/handlers/web/topic.py", line 73, in post
topic_title = self.get_argument('title').strip()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 311, in get_argument
args = self.get_arguments(name, strip=strip)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 327, in get_arguments
v = self.decode_argument(v, name=name)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 350, in decode_argument
return _unicode(value)
File "/usr/local/lib/python2.7/dist-packages/tornado/escape.py", line 183, in to_unicode
return value.decode("utf-8")
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb4 in position 3: invalid start byte