Handling invalid UTF sequences

Chris Williams yoreanon-chrisw at yahoo.co.jp
Thu Mar 20 16:01:44 PDT 2014


To the extent possible, it should try to retain the data. But if 
ever the character is actually needed for something (like parsing 
JSON or displaying a glyph), the bad region should be replaced 
with a series of replacement characters:

http://en.wikipedia.org/wiki/Replacement_character#Replacement_character


More information about the Digitalmars-d mailing list