[fpc-pascal] ReadXMLFile() fails reading a xml file
    Lee Jenkins 
    lee at datatrakpos.com
       
    Tue Feb  2 15:33:13 CET 2010
    
    
  
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
    
    
More information about the fpc-pascal
mailing list