%# -*- coding: gb2312 -*-
in controller write
response.content_type = 'text/html; charset=gb2312'
感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的
reference:
http://snipplr.com/view/22778/python-web-with-bottle/
bottle wsgi server performance compare
http://bottle.paws.de/page/2009-12-19_Comparing_HelloWorld_Performance
![](http://img.zemanta.com/pixy.gif?x-id=8b8758b4-7ef1-8953-8db7-80e6c92b7dd5)