How to use readText to read utf16 file?

ponce via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 17 03:41:05 PST 2015


On Tuesday, 17 November 2015 at 05:37:55 UTC, Domain wrote:
>
> Thank you! Now another question: how to handle endianness?

If your file follow a file format:
     the endianness should be defined there.
else it's a random text file:
     either it will have a BOM with endianness,
     or you will have to guess.


More information about the Digitalmars-d-learn mailing list