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 19943 - Only ASCII encoded by the x-user-defined encoder
Summary: Only ASCII encoded by the x-user-defined encoder
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Encoding (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+encodingspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-11 23:10 UTC by pub-w3
Modified: 2012-11-15 14:31 UTC (History)
2 users (show)

See Also:


Attachments

Description pub-w3 2012-11-11 23:10:52 UTC
The x-user-defined encoder only encodes (7-bit) ASCII.  Please add a note if this is intentional.
Comment 1 pub-w3 2012-11-12 22:11:24 UTC
As far as I can tell, Safari and Firefox, the ones that map from 0x80--0xFF to U+F780--U+F7FF, also map back to %80--%FF for form submission as expected.
Comment 2 Anne 2012-11-12 22:42:36 UTC
Oh really? So it could just be defined as a single-byte encoding? I guess my testing was bogus :/ Do you have a test online?
Comment 3 pub-w3 2012-11-12 23:02:53 UTC
Simple test now available at <http://coq.no/X/charset5/x-user-defined.php>:

<?php header('Content-Type: text/html; charset=x-user-defined'); ?>
<form>
<input type="text" name="data" value="<?php echo "88\x8899\x99AA\xAABB\xBB" ?>">
<input type="submit" value="Submit">
</form>

Submitting the form gives ?data=88%8899%99AA%AABB%BB.