iconv


Description:

public uint iconv (out string inbuf, out uint inbytes_left, out string outbuf, out uint outbytes_left)

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.

Parameters:

inbuf

bytes to convert

inbytes_left

inout parameter, bytes remaining to convert in inbuf

outbuf

converted output bytes

outbytes_left

inout parameter, bytes available to fill in outbuf

converter

conversion descriptor from open

Returns:

count of non-reversible conversions, or -1 on error