Re: GtkUIManager help



On Thursday 24 November 2005 21:46, John Cupitt wrote:
On 11/24/05, Adam <adam ajtee plus com> wrote:
the string is a filepath i.e  /home/adam/denemo/test.denemo.  Is there
anything that I should know about in converting from xmlChar * inserting
into a GList and the extracting and converting to a gchar * ??

GTK+ is UTF-8 (almost) throughout. You need to find out what encoding
your xml file is using (ascii? latin1?) and convert from that to
UTF-8. Although I wonder what's invalid about your string ... is it
null terminated?

Not sure but as it is a file name I used g_filename_to_utf8 and it seems to 
have resolved the issue.

Also, the xmlChar typedef must die :-( it is very annoying.
I'm using libxml to parse the file so these functions return xmlChar * types.



Thanks

Adam



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