This class can validate and repair strings in UTF-8 encoding.
It takes a text string and checks if the characters are valid in UTF-8.
The class can also repair an invalid string by removing some invalid UTF-8 characters sequences and Byte-Order Marks.
The class can return an object instance of itself with the string, byte length, character count, and the position of any encoding errors.
Number 2 Sometimes flawed applications can generate text encoded using UTF-8 that maybe malformed.
This class can check a given text string to validate if it has any issues regarding the encoding of text in UTF-8.
If the encoding is malformed, the class can also fix the problem eliminating any problems with the text encoding.
letter "c" in a circle, is produced at ANSI code point hexadecimal A9 (169).
This same symbol is represented by a two-byte encoding in UTF8: C2A9.
either be converted to entities or converted to UTF-8 multi-byte characters.
scheme.  The best and most widely accepted scheme is UTF-8.
constructor returns an object containing the string and a validity indicator.
that is more accurate than the native PHP functions.
See the "demo" script for examples.
Thats a very good and useful class !