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.

size_t
iconv
(
GIConv converter
,
ref string inbuf
,
ref string outbuf
)

Parameters

inbuf string

bytes to convert

outbuf string

converted output bytes

Return Value

Type: size_t

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

Meta