Convert a sequence of bytes encoded as UTF-8 to a Unicode character.
This function checks for incomplete characters, for invalid characters such as characters that are out of the range of Unicode, and for overlong encodings of valid characters.
max_len |
the maximum number of bytes to read, or -1, for no maximum or if |
p |
a pointer to Unicode character encoded as UTF-8 |
the resulting character. If |