Same as the standard UNIX routine iconv
, but may be implemented via libiconv on UNIX flavors that lack a native
implementation.
GLib provides convert and locale_to_utf8 which are likely more convenient than the raw iconv wrappers.
inbuf |
bytes to convert |
inbytes_left |
inout parameter, bytes remaining to convert in |
outbuf |
converted output bytes |
outbytes_left |
inout parameter, bytes available to fill in |
converter |
conversion descriptor from open |
count of non-reversible conversions, or -1 on error |