Re: [whatwg/url] Add string UTF-8 percent encode (#503)

If we use string (as defined by https://infra.spec.whatwg.org/#string) to mean bytes anywhere that's a bug. With regards to UTF-8 percent encode there's two confusing things I think:

* Not all input is necessarily percent encoded. This could be addressed by adding "conditional" if this is confusing enough.
* Percent encoding doesn't always mean bytes > strings. It just means that the input will be transformed to use the %.. encoding, but the inputs and outputs in terms of bytes/strings differ and are mostly made to suit the callers. I'm not sure there's clean way out of this other than avoiding the word "encoding" altogether.

-- 
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/503#issuecomment-626534491

Received on Monday, 11 May 2020 07:51:02 UTC