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



On Tuesday 04 May 2004 18:21, Jonathan Wakely wrote:
> On Tue, May 04, 2004 at 06:10:36PM +0200, Frederik Himpe wrote:
> > On Tuesday 04 May 2004 19:28, Murray Cumming wrote:
> > > It sounds like it shouldn't crash. So, a simple-as-possible test case
> > > in our bugzilla might help us to fix it.
> >
> > http://bugzilla.gnome.org/show_bug.cgi?id=141824
> >
> > Thanks everybody for the feedback, things have become much clearer now.
>
> Your XML document (as attached to the bug report) has no encoding.
>
> If your XML is in ISO-8859-1 you must identify it as such (default is
> UTF-8, anything else must be explicit)
>
>     <xml encoding="ISO-8859-1">

It certainly contains the encoding, the first line reads
<?xml version='1.0' encoding='ISO-8859-1'?>

Maybe you have to choose View Source in your browser to see it.

Also, the encoding of the file does not matter, even with UTF-8 encoding, the 
same error happens.

Frederik

-- 
Frederik Himpe




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