[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: g_locale_to_utf8
From: Tim =?iso-8859-1?q?M=FCller?= <zen18864 () zen ! co ! uk>
Date: 2004-01-31 10:27:22
Message-ID: 200401311027.22245.zen18864 () zen ! co ! uk
[Download RAW message or body]
On Friday 30 January 2004 20:40, Ivo Andrejco wrote:
> I was wondering if someone could tell me, how exactly
> 'g_locale_to_utf8" works. I tried to store "a & b" as "a & b", I
> passed it to g_locale_to_utf8 and what I get back is the same string "a
> & b". Maybe I am not using the right function?
I think you want g_markup_escape_text():
http://developer.gnome.org/doc/API/2.0/glib/glib-Simple-XML-Subset-Parser.html#g-markup-escape-text
Using that you can escape text that should go between pango markup, or text
that should go between XML elements or into XML attribute value strings etc.
Cheers
-Tim
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic