url icon indicating copy to clipboard operation
url copied to clipboard

Percent-encoded bytes conformance requirement

Open annevk opened this issue 4 years ago • 0 comments

@domenic mentioned in #500 that

Sequences of percent-encoded bytes, string percent decoded, should not cause UTF-8 decode without BOM or fail to return failure.

Is confusing. What it is mainly trying to say is that, e.g., "%FF" should not be used as 0xFF would end up as U+FFFD when UTF-8 decoded (or return failure for the above cited algorithm). There might be edge cases however where encoding non-string data in URLs is fine.

But perhaps we should simply stay out of this?

annevk avatar May 08 '20 06:05 annevk