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 21193 - "get an encoding for value does not return value"; Percent decoding of code points higher than U+00FF
Summary: "get an encoding for value does not return value"; Percent decoding of code p...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-04 20:41 UTC by Peter Occil
Modified: 2013-03-07 13:52 UTC (History)
1 user (show)

See Also:


Attachments

Description Peter Occil 2013-03-04 20:41:29 UTC
In this part of the x-www-urlencoded parser:
------
If the use "_charset_" flag is set, name is "_charset_", and get an encoding for value does not return value, unset the use "_charset_" flag and set encoding override to the result of getting an encoding for value.
------
I assume you mean: "and get an encoding for value does not return failure".

Since otherwise the _charset_ parameter would be ignored if the encoding exactly equals a supported encoding in the Encoding Standard.

Also, the specification does not define what happens when a code point higher than U+00FF occurs in the input to the percent-decoding algorithm.  It seems to me that the code point is truncated to a byte, though that might not be the intention.