UTFException when reading a file

Head Scratcher filter at stumped.com
Fri Jan 11 19:45:05 UTC 2019


I am using readText to read a file into a string. I am getting a 
UTFException on the file. It is probably because the file has an 
extended ANSI character that is not UTF-8.

How can I read the file and convert the string into proper UTF-8 
in memory without an exception?



More information about the Digitalmars-d-learn mailing list