Linux Centos:
./TurboGears-1.5-py2.5.egg
./TurboCheetah-1.0-py2.5.egg
./Cheetah-2.4.4-py2.5-linux-x86_64.egg
the head of my template file:
#encoding UTF-8 ( the encoding of file is UTF-8 too )
when set a var in my tmpl :
#set $a="测试"
it reports:
-------------------------------------------------------------------------------------------------------------------------------------------------
File "/home/estep/python/lib/python2.5/site-packages/TurboCheetah-1.0-
py2.5.egg/turbocheetah/cheetahsupport.py", line 16, in
_compile_template
code = str(Compiler.Compiler(file=tfile, mainClassName=basename))
UnicodeEncodeError: 'ascii' codec can't encode characters in position
3656-3657: ordinal not in range(128)
-------------------------------------------------------------------------------------------------------------------------------------------------------
but it's ok when set a english value (#set $a="test")
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.