Function

GLib-2.0GLibucs4_to_utf8

  • Convert a string from a 32-bit fixed width representation as UCS-4. to UTF-8.

    The result will be terminated with a nul byte.

    Parameters

    • str: string

      a UCS-4 encoded string

    Returns [string, number, number]

    a pointer to a newly allocated UTF-8 string. This value must be freed with GLib.free. If an error occurs, items_read will be set to the position of the first invalid input character.