Hi all,

I have this error raised by kid in Turbogears 1.1.1 :

...
"/home/admin/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/kid-0.9.6-py2.6.egg/kid/template_util.py",
 line 146, in make_attrib
   v = generate_attrib(v, encoding)
 File 
"/home/admin/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/kid-0.9.6-py2.6.egg/kid/template_util.py",
 line 178, in generate_attrib
   item = generate_attrib(item, encoding)
 File 
"/home/admin/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/kid-0.9.6-py2.6.egg/kid/template_util.py",
 line 161, in generate_attrib
   return to_unicode(attrib, encoding)
 File 
"/home/admin/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/kid-0.9.6-py2.6.egg/kid/parser.py",
 line 206, in to_unicode
   return unicode(value, encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: 
ordinal not in range(128)
Error location in template file 
'/home/admin/trunk/BASE/view/templates/controlli/scheda_ua.kid'
on line 34 between columns 50 and 88:
... </h2>  ${form.display(**form_params)} </div>


value = 'Attività' and encoding = 'ascii'
I would like to assign 'utf-8' to encoding param but I don't know how to change 
it.



in my kid template I have this line: (form_params is a dictionary which 
contains the unicode string 'attivittà' )


<span py:replace="form(**form_params)"/>


thanks for any help
j



--
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.

Reply via email to