This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13678 - Misleading encoding in FormData objects created on HTML Forms
Summary: Misleading encoding in FormData objects created on HTML Forms
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: XHR (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 03:18 UTC by Wellington
Modified: 2011-08-17 10:36 UTC (History)
3 users (show)

See Also:


Attachments

Description Wellington 2011-08-05 03:18:12 UTC
Using xhr_object.send(new FormData(html_form_object)) allows to submit files using xhr instead of using hidden iframes. However, currently, that will send utf-8 encoded data instead of the html_form_object's encoding. This behavior makes hard to web pages to maintain compatibility with older browsers that require hidden iframes and use other encodings than utf-8. PHP, for instance, uses the iso-8859-1 encoding by default.

Please see https://bugzilla.mozilla.org/show_bug.cgi?id=669239.
Comment 1 Anne 2011-08-05 08:36:57 UTC
Unless you go binary XMLHttpRequest is always UTF-8. Given that everyone ought to use UTF-8 anyway I would like to keep it that way.