python3 做cgi 中文乱码问题
2016-03-16 16:55
441 查看
开头加入以下代码解决
import codecs, sys
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)
import codecs, sys
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)
相关文章推荐
- python的PyPi源
- Python Post img
- python 安装MySQLdb模块
- python通过eval解析json
- python文件+文件夹操作
- Python ORM slqalchemy 中join的使用
- Python模块学习:urllib
- python str.format()方法的基本用法
- python连接mysql数据库
- python 正则表达式
- 使用R和Python计算AUC
- python abc II
- openerp js调用Python类方法
- Python的web小游戏启动心得
- 【python】:python学习的好资源
- 【python】:python学习的好资源
- 如何在Windows下开发Python:在cmd下运行Python脚本
- Python测试驱动编写
- python学习6 web开发
- 【算法】-8大排序算法总结-Python