int (utf-8) to Glib::ustring



Hi everyone.

I have an hex representation (in a string) of a 2 byte UTF-8 char.

When i try to use g_unichar_to_utf8(), it converts a UTF-16 value to a gchar *, so:

1) How can i convert UTF-8 to UTF-16 value?

OR

2) How can i convert a UTF-8 value into std::string, Glib::ustring, gchar * or char *?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]