I m using repoze.bfg v1.3 and chameleon v2 (zpt templates). I got troubles with encoding while rendering template:
UnicodeDecodeError:ascii编解码器无法解码位置9中的字节0xc5:序号不在范围(128)内
How can i configure repoze.bfg to use utf-8 encoding with chameleon?
I added the following to Configurator:
config.add_settings(encoding="UTF-8")
config.add_settings(default_encoding="UTF-8")
但没有起到任何作用。