Hi... I searched and read the previous posts, but didn't see a clear
fix for my problem that I could understand how to implement.
I believe the problem is coming from attempting to display a string
that contains the word: " Ren\xe9" under Genshi.
How can I make this work?
Here's the error message:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/
cherrypy/_cphttptools.py", line 105, in _run
self.main()
File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/
cherrypy/_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in pattern_match
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/controllers.py", line 334, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/database.py", line 302, in so_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/controllers.py", line 351, in <lambda>
mapping, fragment, args, kw)))
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/controllers.py", line 391, in _execute_func
return _process_output(output, template, format, content_type,
mapping, fragment)
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/controllers.py", line 82, in _process_output
fragment=fragment)
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/view/base.py", line 131, in render
return engine.render(**kw)
File "build/bdist.linux-i686/egg/genshi/template/plugin.py", line
93, in render
File "build/bdist.linux-i686/egg/genshi/core.py", line 149, in
render
File "build/bdist.linux-i686/egg/genshi/output.py", line 275, in
__call__
File "build/bdist.linux-i686/egg/genshi/output.py", line 521, in
__call__
File "build/bdist.linux-i686/egg/genshi/output.py", line 591, in
__call__
File "build/bdist.linux-i686/egg/genshi/core.py", line 381, in join
File "build/bdist.linux-i686/egg/genshi/core.py", line 408, in
escape
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position
9: ordinal not in range(128)
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---