Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Graeme Geldenhuys
On 2 February 2010 23:51, cobines wrote: > > It is supposed to look at "encoding" value, then BOM and if both are > not present assume UTF-8. That did not work for me, hence this message thread. -- Regards, - Graeme - ___ fpGUI - a cross-platfo

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread cobines
2010/2/2 Lee Jenkins : > 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... It is supposed to look at "encoding" value, then BOM and if both are not present assume UTF-8. -- cobines _

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Lee Jenkins
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 progra

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: > > > > And you must of course make sure the contents match the header :-) Missing encoding and wrong content encoding was my problem. Oops! :) Thanks for the help, it's working now. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Michael Van Canneyt
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 langua

[fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Graeme Geldenhuys
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