Hi Walter.
Try the ways I think.
Write coding settings on first line of mako template.
# -*- coding:utf-8 -*-
Use unicode for values with twforms.
Take care.
aodag
2007/7/26, Walter Cruz [EMAIL PROTECTED]:
Hi all..
I and a friend have a project that we use to learn about Pylons.
Today,
Hi Atsushi Odagiri! A part of this was my fault, i was using
render_template from core pylons, and not from
toscawidgets.mods.pylonshf .
But i'm not without doubts yet :(
My data are being saved as utf-8. To insert a data in the database,
it's ok. But, if I edit a data that's with some accented
Hi.
Sorry, I missed very important thing.
I've set default encoding to utf-8.
sys.getdefaultencoding()
'utf-8'
I set default encoding to 'ascii', and I saw the same error.
I think Mako does'nt use encoding settings in decoding.
2007/7/27, Walter Cruz [EMAIL PROTECTED]:
And, with a simple
And, with a simple wsgi app lie the on in
http://svn.turbogears.org/projects/ToscaWidgets/branches/pre_post_hooks_removal/examples/wsgi_app.py
If I put José in the person name, it generates the same error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
3: ordinal not in