12.1 Setting the source code encoding: #encoding

Including

#encoding UTF-8

in your Cheetah .tmpl file will result in

# -*- coding: UTF-8 -*-

being appended to the top of the .py module file that Cheetah's compiler generates.

See http://www.python.org/doc/2.3/whatsnew/section-encodings.html for more details.