[fpc-pascal] XML with lazarus UTF8 problem

Henrik Genssen henrik.genssen at mediafactory.de
Mon Jul 6 11:24:11 CEST 2009

As I said, the file is valid XML.

It parses well in:
- Firefox
- IE
- libxml
- msxml



>reply to message:
>date: 06.07.2009 13:17:05
>from: "JoshyFun" <joshyfun at gmail.com>
>to: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
>subject: Re: [fpc-pascal] XML with lazarus UTF8 problem
>Hello FPC-Pascal,
>Monday, July 6, 2009, 8:13:56 AM, you wrote:
>HG> I am using DOM and XMLRead units for parsing XML files.
>HG> The XML file is UTF-8. The text-nodes in the file contain german umlaute.
>HG> The file is valid XML!
>I do not work with XML DOM but if the file is UTF-8 and the text node
>contains an ANSI german umlaute the XML is not valid as the text is
>not UTF-8 conformant.
>fpc UTF-8 decoder clear any UTF-8 string with wrong encode (I think
>trunk one replace wrong encodes with '?' mark).
>Best regards,
> JoshyFun
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org

More information about the fpc-pascal mailing list