<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 3, 2015 at 10:34 PM, Kim Holviala <span dir="ltr"><<a href="mailto:kim@holviala.com" target="_blank">kim@holviala.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":vg" class="a3s" style="overflow:hidden">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).<br>
<br>
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.<div class="yj6qo ajU"><div id=":wd" class="ajR" tabindex="0"></div></div></div></blockquote></div><br>This is really neat :) How do you "detect" the file's encoding btw?</div><div class="gmail_extra">I "almost" do the same with cgod (encoding on the fly) but currently</div><div class="gmail_extra">I make no efforts to auto-dtect file encoding on disk.</div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers</div><div class="gmail_extra">James<br><br clear="all"><div><div class="gmail_signature"><span style="border-collapse:collapse;color:rgb(136,136,136);font-size:13px"><br><font face="arial, sans-serif">James Mills / prologic</font><br><br><font face="arial, sans-serif"></font><font face="'courier new', monospace">E: <a href="mailto:prologic@shortcircuit.net.au" style="color:rgb(0,0,204)" target="_blank">prologic@shortcircuit.net.au</a></font></span><div><span style="font-family:'courier new',monospace;color:rgb(136,136,136);font-size:13px">W: </span><a href="http://prologic.shortcircuit.net.au" style="font-family:'courier new',monospace;font-size:13px;color:rgb(0,0,204)" target="_blank">prologic.shortcircuit.net.au</a><br></div></div></div>
</div></div>