Test browser can't handle non-ascii characters in form data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.testbrowser |
New
|
Undecided
|
Unassigned |
Bug Description
In a test, I assign a unicode string with some non-ascii characters to the value of a field, and submit the form. I then get the following error (fragment):
File "/home/
File "/home/
File "/usr/lib/
File "/usr/lib/
return control.
File "/usr/lib/
r = form._switch_
File "/usr/lib/
req_data = self._request_
File "/usr/lib/
File "/usr/lib/
UnicodeEnco
To behave more like a real browser, the test browser should automatically encode its content, trying to get the desired encoding from the form, or if that fails, from the page or from a sensible default (utf-8?).
Mis-assigned.