Function sanitizeUTF8

Takes a string with possibly invalid UTF8 sequences and outputs a valid UTF8 string as near to the original as possible.

Prototype

string sanitizeUTF8(
  in ubyte[] str
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.