[fpc-devel] [PATCH] XMLCFG AnsiString<>DOMString conversion

Sergei Gorelkin sergei_gorelkin at mail.ru
Wed Nov 3 23:50:38 CET 2010


darekm at emadar.com пишет:
> When I using xmlCfg unit i found problem with storing literals in
> arbitrary code page. XMLCfg perform automatic conversion with omit some
> chars.
> I've change it to use utf8string instead of. Maybe this patch will be
> interesting.
> 
Such patch will make all existing config files with non-ascii data unreadable.
In the meantime, I wrote the xmlconf unit exactly to avoid this problem. So if you need Unicode 
configs, you should switch to xmlconf. Calls to Utf8Encode/Decode will be still necessary because 
xmlconf.TXMLConfig has WideString parameters, but it won't strip any non-ascii data.

Regards,
Sergei




More information about the fpc-devel mailing list