I'm learning the flask module
I copy the code but it didn't work and give my the UnicodeDecodeError
Thanks for your help
As the traceback point out, your computer's hostname has non-ASCII character. As this document said, you can use this way to get your hostname:
$ python
>>> from socket import *
>>> getnameinfo(("127.0.0.1", 0), 0)
('user-greyli', '0') # here the 'user-greyli' is hostname
In windows system, the hostname was same as computer's name. So, you need to rename your computer's name.
How to do it? Just check this page. Besides, as a bonus, I capture a picture in Chinese that includes all the operation you need :)