web.py中文字符串网页显示乱码的解决
import weburls = (
'/',
'index')
class index:def GET(self): web.header(
'Content-Type',
'text/html;charset=UTF-8')
return "<h1>你好!</h1>"if __name__ ==
"__main__": app = web.application(urls, globals()) app.run()
转载于:https://www.cnblogs.com/c-x-a/p/9176396.html
相关资源:JAVA上百实例源码以及开源项目