[whatwg/url] Revert "Editorial: use an encode set in the query state" (#517)

This reverts commit bc7ac863aead17d6447133eb0de89a88bd6801f1.

When I started looking at what it would take to do this for application/x-www-form-urlencoded I realize that this is not editorial at all and in fact changes behavior.

If the input is U+0080 that would become 0xC2 0x80 when UTF-8 encoded. We then turn that into U+00C2 U+0080. We then UTF-8 percent-encode that, creating %C3%82%C2%80 rather than %C2%80.

I think the only way to go here is to have a byte version of UTF-8 percent-encoding. I guess that could still use the code point sets but it would be a bit messy/weird?


<!--
    This comment and the below content is programatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/url/517.html" title="Last updated on May 13, 2020, 4:00 PM UTC (e236f60)">Preview</a> | <a href="https://whatpr.org/url/517/bc7ac86...e236f60.html" title="Last updated on May 13, 2020, 4:00 PM UTC (e236f60)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/url/pull/517

-- Commit Summary --

  * Revert "Editorial: use an encode set in the query state"

-- File Changes --

    M url.bs (61)

-- Patch Links --

https://github.com/whatwg/url/pull/517.patch
https://github.com/whatwg/url/pull/517.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/517

Received on Wednesday, 13 May 2020 16:00:59 UTC