[fpc-pascal] XML with lazarus UTF8 problem
Henrik Genssen
henrik.genssen at mediafactory.de
Mon Jul 6 11:28:07 CEST 2009
using UTF8Encode / UTF8Decode does not make any change
I used that already - even leaving it out does not work.
regards
Hinnack
>reply to message:
>date: 06.07.2009 12:42:46
>from: "Valdas Jankunas" <zmuogs at gmail.com>
>to: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
>subject: Re: [fpc-pascal] XML with lazarus UTF8 problem
>
>Henrik Genssen rae:
>> 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 Jankunas
>_______________________________________________
>fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list