UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 1: invalid start byte
|
1
这是我的HelloWorld代码
#encoding: utf-8 import web urls = ("/.*", "hello") app = web.application(urls, globals()) class hello: def GET(self): return 'Hello, world!' if __name__ == "__main__": app.run() |
|
allenforrestJul 15, 2014
2
声明的是 utf-8,但实际保存的 py 文件编码不是 utf-8的,检查你的编辑器
|
|
tonylujJul 15, 2014
3
用notepad++,utf-8编码
editor用vim吧,早用早幸福 |
|
BiggerLongerJul 15, 2014
4
'Hello world'.decode('utf-8') 试试
|