Hi, I used to process XML files in my Lazarus applications using SimpleXML library for Delphi. Recently I tried to switch to fcl-xml (because of better performance) and faced with the following problem.
Since LCL uses utf-8 as internal string encoding, I use it for all string data in my applications too. But DOM/XMLRead/XMLWrite units use usc-2/utf-16 (WideString) so when working with TXmlDocument I have to do conversion like this: myUtf8String := UTF8Encode(myElement['name']); myElement['name'] := UTF8Decode(myString); What I would like is to get rid of UTF8Encode/UTF8Decode stuff in my source. I guess CodeTools uses modified fcl-xml units to achieve exactly that, but these units seem to be pretty outdated compared to recent fcl-xml version in FPC 2.4.0. * Does someone else use fcl-xml with LCL? Are there any tricks to avoid excessive UTF8Encode/UTF8Decode calls? * Are there any plans to update CodeTools version and/or merge it into FCL? Well, according to the header of modified units there were such plans, but is it still true or the idea was abandoned for some reason? * If the problem is lack of time only, it would be great to know the fcl-xml revision against which CodeTools modified version was made. Then updating it to the most recent fcl-xml version would be much easier for volunteers. Thanks in advance. -- Vladimir Zhirov -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
