Read Complete File to Array of Lines

Era Scarecrow rtcvb32 at yahoo.com
Fri May 11 14:29:51 PDT 2012


On Friday, 11 May 2012 at 21:13:41 UTC, Paul wrote:
> std.utf.UTFException at std\utf.d(644): Invalid UTF-8 sequence (at 
> index 1)

   What are you reading? If it's regular text (0-127) then you
shouldn't have an issue. However 128-255 (or, -1 to -127) are
treated differently. D by default is UTF-8 or unicode encoded,
meaning it wants to see valid encodings that follow that
structure.

   Unfortunately I don't have good references of how to simply
convert old Ascii to a utf-8 (within Phobos). I have my own
workaround...


More information about the Digitalmars-d-learn mailing list