I have a TXmlDocument-Component and write an XML-file in D7.
First line is
<?xml version="1.0" encoding="UTF-8" ?>
Writing a text with the german char "ä" it writes two characters 0xC3 and 0xA4
Reading this file again with TXmlDocument it reads 'ä' --> correct.
But when I have the same code in D XE2 it writes only one character 0xE4. Reading it with the application written in D7 it gets an error "invalid character". How have I to decode/code it to have the same result as with D7?