2 * unicode.c: unicode conversion
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
20 #include "mono/io-layer/wapi.h"
23 /* This is a nasty kludge */
25 unicode_len (const gunichar2 *str)
30 if (str [len] == '\0')
37 gchar *_wapi_unicode_to_utf8(const gunichar2 *uni)
43 len = unicode_len(uni);
45 res = g_utf16_to_utf8 (uni, len, NULL, NULL, &error);