2010/5/10 David McLaughlin <[email protected]>:
> I have an extremely simple web.py script which has a form which takes
> data and spits it back out:
>
> When I post something like this:
>
> Jardin Botanico
>
> It spits it back out fine. But with text with unicode characters:
>
> Praça Antônio Barbosa Ferraz Júnior
>
> I get:
>
> <type 'exceptions.UnicodeDecodeError'> at /myapp
> 'utf8' codec can't decode bytes in position 3-5: invalid data
>
>
> I use web.input().data to access the form input. Should I be using
> something else?

Looks like it is not sending the form data in some other encoding. Try
adding the following meta tag to your form.

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Anand

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to