utf8GetChar

fndchar utf8GetChar(string p)

Converts a sequence of bytes encoded as UTF-8 to a Unicode character.

If p does not point to a valid UTF-8 encoded character, results are undefined. If you are not sure that the bytes are complete valid Unicode characters, you should use [glib.global.utf8GetCharValidated] instead.

Parameters

pa pointer to Unicode character encoded as UTF-8

Returns

the resulting character