Hi,

Strange error crashes app when inputting "söö" (or other german
umlauts) into rendered form.Textbox, the same string in form.Textarea
does not generate error and is shown after form validation.

File "/usr/lib/python2.4/site-packages/web/form.py", line 160, in
render
     return '<input %s/>' % attrs
UnicodeEncodeError: 'ascii' codec can't encode characters in position
24-25: ordinal not in range(128)

web.input() prints out
<Storage {'s1': u's\\xf6\\xf6', 's2': u's\\xf6\\xf6'}>

form.Textarea('s1',form.notnull,cols='50',rows='4'),
form.Textbox('s2',form.notnull,size='20',maxlength='25'),

form fields being rendered individually
<td>xxx $:form.s1.render()</td>
<td>xxx $:form.s2.render()</td>

There is encoding header
#!/usr/bin/python
# -*- coding: utf-8 -*-

python2.4, mod_wsgi3.3, web.py 0.36

How can be that form.Textbox and form.Textarea process input
differently?

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to