writefln and ASCII

Serg Kovrov kovrov at no.spam
Tue Sep 12 05:03:20 PDT 2006


How do I writefln a string from ASCII file contained illegal UTF-8 
characters, but legal as ASCII? For example ndash symbol - ASCII 0x96).

Is there a standard routine to convert such ASCII characters to UTF, or 
other way to get valid UTF string from arbitrary raw data? Filter or 
substitute bad characters, etc...

-- 
serg.



More information about the Digitalmars-d-learn mailing list