-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, I've got some HTML pages that have some utf-8 chars (not ascii)
and when I process them I've got an error (see below). I am using python-2.6 and
tested it with tahchee-0.9.8 and with latest git sources from repository
Also tested it with cheetah-2.2.2 and cheeta-2.4.0.
My guess is that I've got to define that I am using utf-8 in some template, but
I really do not know where (or how) to do it.
Thanks for any help, Juan
Error message follows:
++++++++++++++++++++++++++++++++++++++++
[ ] Generating file 'bib_en.html'
Traceback (most recent call last):
File "build.py", line 28, in <module>
SiteBuilder(site).build(filter(lambda x:x not in
('local','remote'),sys.argv[1:]))
File "/usr/lib/python2.6/site-packages/tahchee/main.py", line 577, in build
self.applyTemplates(paths)
File "/usr/lib/python2.6/site-packages/tahchee/main.py", line 635, in
applyTemplates
self.processFile( input_path, output_path, force )
File "/usr/lib/python2.6/site-packages/tahchee/main.py", line 659, in processFile
self.applyTemplate(ifile, force)
File "/usr/lib/python2.6/site-packages/tahchee/main.py", line 710, in
applyTemplate
template = Template(file=template, searchList=[localdict])
File "/usr/lib/python2.6/site-packages/Cheetah/Template.py", line 1244, in
__init__
self._compile(source, file, compilerSettings=compilerSettings)
File "/usr/lib/python2.6/site-packages/Cheetah/Template.py", line 1538, in
_compile
keepRefToGeneratedCode=True)
File "/usr/lib/python2.6/site-packages/Cheetah/Template.py", line 742, in compile
settings=(compilerSettings or {}))
File "/usr/lib/python2.6/site-packages/Cheetah/Compiler.py", line 1588, in
__init__
source = unicode(source)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 28193:
ordinal not in range(128)
make: *** [local] Error 1
++++++++++++++++++++++++++++++++++++++++
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAksL45gACgkQqiWjWCO20ux7agCeP8Yg0jVybltVcuYAb+wFusxW
K3gAnjrqikruR2LNDgwwyqu/rbHVgesa
=6yq0
-----END PGP SIGNATURE-----