Re: Invalid UTF-8... the comeback :-)
- From: Emmanuel Saracco <esaracco noos fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Invalid UTF-8... the comeback :-)
- Date: Thu, 27 Feb 2003 19:55:55 +0100
On Thu, 27 Feb 2003 13:31:42 -0500
Noah Levitt <nlevitt columbia edu> wrote:
This program works for me:
[...]
Of course, it has to be encoded in UTF-8. If your strings
are in some other encoding, you can convert them using
g_iconv or related functions. Havoc's thing is a bit of a
hack that only works for iso8859-1, if I understand it
correctly.
I solved the problem doing:
-----------
label = g_convert (tmp, strlen (tmp), "UTF-8", "LATIN1", NULL, NULL,
NULL);
-----------
I don't know if it's the right way, but at least it works.
thanks,
bye
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]