[gopher] CAPS capability: ServerDefaultCharset

Kim Holviala kim at holviala.com
Sat Jan 3 12:34:49 UTC 2015


> On 03 Jan 2015, at 13:39, Mateusz Viste <mateusz at viste.fr> wrote:
> 
> Of course one could imagine a server that recodes everything on the fly, when files are physically stored in another charset, but's that would rather be a special feature of the server (and IMHO, an unnecessary one, since it makes more sense to directly store the content in utf-8 anyway).

Hee hee… One does not need to imagine, one simply needs to download Gophernicus and test that feature :-D. Gophernicus autodetectes all input (US-ASCII, Latin-1, UTF-8) and re-encodes to output charset which by default is US-ASCII. This applies to all text files and generated menus (directory listings).

Reason for this seemingly stupid feature was that no client that I tested could handle my UTF-8 filenames, and I wasn’t going to change my files so changing menus on the fly was the only choice. And since I already had the code I decided to re-encode textfiles too. 


- Kim


More information about the Gopher-Project mailing list