[spec] IRIs, IDNs, and all that international jazz

John Cowan cowan at ccil.org
Sat Dec 26 21:10:48 GMT 2020


On Fri, Dec 25, 2020 at 11:58 AM Stephane Bortzmeyer <stephane at sources.org>
wrote:


> I don't think that percent-encoding has to be done per path segment. I
> don't find anything in RFC 3986 that makes your algorithm
> mandatory. "/" is a safe character, anyway so it seems to me that you
> can percent-encode the entire path in one operation.
>

Once any necessary punycoding has been done (look for // on the left and
either / or end-of-string on the right), the whole URI can have its
non-ASCII characters %-encoded all at once.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20201226/31aff2f2/attachment.htm>


More information about the Gemini mailing list