Unicode vs. the World

Jason McBrayer jmcbray at carcosa.net
Thu Dec 17 13:55:38 GMT 2020


Björn Wärmedal <bjorn.warmedal at gmail.com> writes:

> How does a client handle a link like the following:
> => essays/why-spaces-are-%20-in-URLs.gmi
>
> The assumption here is that the author has not percent encoded
> themselves -- this is the actual filename, %20 and all.

This doesn't work in HTML/HTTP, either.

Go to https://jfm.carcosa.net/testme.html, look at the source, see what
happens with each link. The web server is Apache.

The upshot is that to include %, or any other reserved character in the
link, you do need to pre-encode it in your source. That's obvious for
' ', because of the syntax of links in gemtext. But it's also true of %,
etc. 

-- 
Jason McBrayer      | “Strange is the night where black stars rise,
jmcbray at carcosa.net | and strange moons circle through the skies,
                    | but stranger still is lost Carcosa.”
                    | ― Robert W. Chambers,The King in Yellow


More information about the Gemini mailing list