GLib.unichar_to_utf8
function unichar_to_utf8(c: String, outbuf: String): Number(gint) { // Gjs wrapper for g_unichar_to_utf8() }
Converts a single character to UTF-8.
- c
a Unicode character code
- outbuf
output buffer, must have at least 6 bytes of space. If null, the length will be computed and returned and nothing will be written to outbuf.
- Returns
number of bytes written