web.py + cheetah で日本語対策
http://ash1no0to.dyndns.org/htdocs/archives/2006/03/webpy_cheetah.html
cheetahを使ったテンプレートファイルに日本語を入れたらエラーが出た
とりあえずweb.pyのrendar関数(1200行あたり)
の戻り値
if asTemplate: return t
else: return output(str(t))
を
if asTemplate: return unicode(t).encode('utf-8')
else: return output(str(unicode(t).encode('utf-8')))
に変更。