fazalmajid / temboz

The Temboz RSS/Atom feed reader
MIT License
82 stars 4 forks source link

Problems updating a feed description with non-ASCII characters #77

Open fazalmajid opened 11 years ago

fazalmajid commented 11 years ago

The result is an empty page and a traceback in the log:

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 8-10: invalid data Traceback (most recent call last): File "/usr/local/lib/python2.5/SocketServer.py", line 464, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python2.5/SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python2.5/SocketServer.py", line 522, in init self.handle() File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle self.handle_one_request() File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request method() File "/home/majid/temboz/server.py", line 214, in do_POST self.process_post_info() File "/home/majid/temboz/server.py", line 208, in process_post_info query_list = [(n, v.decode('UTF-8')) for n, v in cgi.parse_qsl(istr, 1)] File "/usr/local/lib/python2.5/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True)