[gopher] CAPS capability: ServerDefaultCharset

James Mills prologic at shortcircuit.net.au
Sat Jan 3 17:12:34 UTC 2015


On Sun, Jan 4, 2015 at 12:51 AM, Kim Holviala <kim at holviala.com> wrote:

> It doesn’t detect the file encoding, it detects encoding per character on
> the fly. As in you can have both Latin-1 and UTF-8 on the same line in the
> same file and it will still do the right thing.
>
> Look at the function strniconv() on string.c line 144. Not the easiest to
> understand because it has lots of bit handling - you should probably read &
> fully understand some UTF-8 docs before trying to figure out what my code
> does and why it works the way it does.
>

Interesting :) Got a lnk to some docs/refs that explain how this works? (I
assume you followed some well understood algo)

cheers
James


James Mills / prologic

E: prologic at shortcircuit.net.au
W: prologic.shortcircuit.net.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/gopher-project/attachments/20150104/e8357644/attachment.html>


More information about the Gopher-Project mailing list