Function
GLibutf8_get_char_validated
since: 2.0
Description
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.
Note that g_utf8_get_char_validated()
returns (gunichar)-2 if
max_len
is positive and any of the bytes in the first UTF-8 character
sequence are nul.
Available since: 2.0