On Sun, 5 Jul 2009 05:13:45 +0200, Andrzej Zaborowski <andrew.zaborowski at intel.com> wrote: > + > + ret = g_utf16_to_utf8((const gunichar2 *) buffer, i / 2, > + NULL, items_written, &error); Why not use iconv() with UCS-2BE to UTF-8? Cheers, Aki