iambus/xunlei-lixian — Issue #40: utf-8 编码问题
Author: bcxx
Created: 2012-02-27 17:42:59+00:00
State: open

$ lx list

File "/workshop/xunlei-lixian/lixian_cli.py", line 709, in
execute_command()
File "/workshop/xunlei-lixian/lixian_cli.py", line 706, in execute_command
commands[command](args[1:])
File "/workshop/xunlei-lixian/lixian_cli.py", line 526, in list_task
tasks = client.read_all_tasks()
File "/workshop/xunlei-lixian/lixian.py", line 169, in read_all_tasks
links, next_link = self.read_task_page(st)
File "/workshop/xunlei-lixian/lixian.py", line 162, in read_task_page
return self.read_task_page_url(url)
File "/workshop/xunlei-lixian/lixian.py", line 145, in read_task_page_url
page = req.read().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 0xef in position 49351: invalid continuation byte