Re: How to know whether a file's encoding is ansi or utf8?
Kagamin via Digitalmars-d-learn Thu, 24 Jul 2014 03:31:36 -0700
I first try to load the file as utf8 (or some 8kb at the start of
it) with encoding exceptions turned on, if I catch an exception,
I reload it as ansi, otherwise I assume it's valid utf8.
- How to know whether a file's encoding is... Sam Hu via Digitalmars-d-learn
- Re: How to know whether a file's en... Sam Hu via Digitalmars-d-learn
- Re: How to know whether a file's en... FreeSlave via Digitalmars-d-learn
- Re: How to know whether a file'... Sam Hu via Digitalmars-d-learn
- Re: How to know whether a file's en... Alexandre via Digitalmars-d-learn
- Re: How to know whether a file'... Sam Hu via Digitalmars-d-learn
- Re: How to know whether a f... FreeSlave via Digitalmars-d-learn
- Re: How to know whether... Alexandre via Digitalmars-d-learn
- Re: How to know whether a file's en... Kagamin via Digitalmars-d-learn