Re: [libxml++] program crashes when parsing XML with accent



On Tue, 2004-05-04 at 14:13, Frederik Himpe wrote:
> I have an XML document in ISO-8859-1 character set. When using libxml++-2.6, 
> the sax pasers crashes when it encounters a character with an accent (é) in 
> the on_characters method. I'm using the Glib::ustring class.

Glib::ustring should contain a UTF8 string. It can not recognise your
encoding and convert by itself. I think you need to use some conversion
API such as iconv or the glibmm convert functions.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com





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