[fpc-pascal] XML with lazarus UTF8 problem
Valdas Jankūnas
zmuogs at gmail.com
Mon Jul 6 12:42:46 CEST 2009
Henrik Genssen rašė:
> Hi,
>
> I am using DOM and XMLRead units for parsing XML files.
> The XML file is UTF-8. The text-nodes in the file contain german umlaute.
> The file is valid XML!
>
> When it try to get the textnodes containing german umlaute, I get an empty string, although
> the length of the string seems to be correct.
>
> I uses Lazarus from trunk this morning, FPC 2.2.4.
> I even tried fcl-xml from FPC svn trunk with no changes...
>
> -- Hinnack
Maybe this helps you:
http://news.gmane.org/find-root.php?message_id=%3c4734B336.1080806%40erdves.lt%3e
I solved this problem by using UTF8Decode/UTF8Encode routines to
convert between UTF8 <-> Widestring.
--
Valdas Jankūnas
More information about the fpc-pascal
mailing list