Re: converting to UTF8



On Wednesday 18 February 2004 15:02, Murilo Tuvani wrote:

Is there any function that converts a string like
"coração" to UTF8 string?

g_locale_to_utf8() if you know that your string is in the user's locale 
charset encoding,  or g_convert() to convert from any one encoding to another 
one.

Check out

http://developer.gnome.org/doc/API/2.0/glib/glib-Character-Set-Conversion.html

for the details.

Cheers
 -Tim




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