[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] UTF-8 Encoding Issue in xmlParseMemory
- From: Daniel Veillard <veillard redhat com>
- To: Alex Neblett <alexneblett01 yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] UTF-8 Encoding Issue in xmlParseMemory
- Date: Thu, 27 Apr 2006 11:27:24 -0400
On Wed, Apr 26, 2006 at 01:00:40PM -0500, Alex Neblett wrote:
> Finally, I have found one myself that causes the same problem and have
> attached it. The attached file is a UTF-8 encoded xsl fo document. However,
> xmlParseMemory complains:
>
> Entity: line 2: parser error : Input is not proper UTF-8, indicate encoding
> !
> Bytes: 0xA0 0x3C 0x2F 0x66
> </fo:inline-container>[<fo:inline
> text-decoration="underline">
>
> ^
The parser get a sequqnce of bytes which is not UTF-8, while the document
indicates being UTF-8
> I get the same results with both the latest release and the latest cvs
> version. I am on a Win32 platform (Windows XP Professional).
I can't reproduce the problem
paphio:~/XML -> xmllint --noout --memory temp.fo
paphio:~/XML ->
and xmllint --memory uses the xmlReadMemory() call to parse the content.
> Probably, I am not the first one to encounter this issue and it only happens
> rarely. If I have missed something somewhere, please let me know.
possibly a bug in your code to load the document in memory, libxml2
is fine with it here.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]