CharacterSet.iconv

Same as the standard UNIX routine iconv(), but may be implemented via libiconv on UNIX flavors that lack a native implementation. GLib provides g_convert() and g_locale_to_utf8() which are likely more convenient than the raw iconv wrappers.

class CharacterSet
static
iconv
(,
ref char[] inbuf
,
ref char[] outbuf
)

Parameters

converter GIConv

conversion descriptor from g_iconv_open()

inbuf char[]

bytes to convert

outbuf char[]

converted output bytes

Return Value

Type: gsize

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

Meta