web.input unicode conversion should be on by default
Bug #288753 reported by
Aaron Swartz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
web.py |
Fix Released
|
Undecided
|
Anand Chitipothu |
Bug Description
Right now web.input returns bytestrings by default and only converts to Unicode if you explicitly ask it. It should be the reverse, just as it is with files in Python 3.0. Right now people will write code that appears to work fine, then as soon as someone enters a Unicode character in their form, everything crashes. That's basically the worst-case scenario.
Changed in webpy: | |
assignee: | nobody → anandology |
status: | New → Confirmed |
Changed in webpy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Fri, Oct 24, 2008 at 8:27 PM, Aaron Swartz <email address hidden> wrote:
> Public bug reported:
>
> Right now web.input returns bytestrings by default and only converts to
> Unicode if you explicitly ask it. It should be the reverse, just as it
> is with files in Python 3.0. Right now people will write code that
> appears to work fine, then as soon as someone enters a Unicode character
> in their form, everything crashes. That's basically the worst-case
> scenario.
I have added this some time back and reverted because it was also
trying to encode even file uploads.
I need to give it another try.