Function sanitizeUTF8

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

Prototypes

string sanitizeUTF8(
  const(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.