Michael Van Canneyt wrote:


On Tue, 2 Feb 2010, Graeme Geldenhuys wrote:

Hi,

Part of creating a new cross-platform installer application, I'm trying to
read an XML file that contains UTF-8 characters, but I get the following
error. Unicode support is very important, because the setup program must
support multiple languages. Does this mean the XML implementation in FPC
doesn't support Unicode enabled XML at all?  :-(

It does, but you must specify the codepage in the XML header of the file.

<?xml version="1.0" encoding="utf-8"?>

And you must of course make sure the contents match the header :-)

Michael.



Isn't it supposed to assume utf-8 if no encoding processing instruction is present in the XML doc? I thought I read that somewhere...

--
Warm Regards,

Lee
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to