iconv

fnsize_t iconv(iconv_t cd, const scope char * * inbuf, size_t * inbytesleft, char * * outbuf, size_t * outbytesleft)

Convert at most INBYTESLEFT bytes from INBUF according to the code conversion algorithm specified by CD and place up to

OUTBYTESLEFT bytes in buffer at OUTBUF.