On Thu, May 28, 2009 at 12:10 PM, Martin Lesser
<[email protected]> wrote:
>
> Hi,
>
> had some trouble with uploading files:
>
> Due to
>
> defaults.setdefault('_unicode', True) # force unicode conversion by
> default.
>
> in webapi.py L222 web.py raised exceptions when binary files where
> uploaded.
> (UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position
> 0: unexpected end of data).
Use web.input(yourfile={}, _unicode=False)
>
> What's the reason for forcing unicode at this point? Did I miss
> something?
>
> The only solution was to disable the line mentioned above.
>
> Cheers, Martin
>
> >
--
Arnaldo M Pereira
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---