💾 Archived View for station.martinrue.com › adou2 › adbfcef08d5e47a084707086c4b18a70 captured on 2023-01-29 at 05:26:46. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
Spartan is interesting but… US-ASCII? Does that mean that I couldn't type é, ä or ĉ?
8 months ago · 👍 syntheist, justyb, iam_ami
@mozz Oh, I should have understood. Thanks for your answer :-) · 8 months ago
If you're curious, see this long-ass thread about how complicated unicode can get with gemini requests (there has still not been any resolution AFAIK). https://gitlab.com/gemini-specification/protocol/-/issues/1 · 8 months ago
I really should clarify this in the docs. The spartan request and response header lines are US-ASCII, which just means to you need to %-encode paths and punycode domain names. This solves a bunch of unspecified edge-cases that gemini has with sending request URLs that contain unicode characters to servers. The response document for spartan can be whatever encoding you want, the default for text/gemini is UTF-8 just like in gemini. · 8 months ago
Curious. I've been sending UTF-8. The request specification seems to support an encoding format; the examples page shows:
2 text/plain; charset=utf-8
I think it's a leftover from some earlier summary that should be fixed. Spartan is a transport protocol anyway, and you can send gmi or html over it if you want. Or anything else. · 8 months ago