Read UTF-8 data from XML file lazarus / 13-General ---------------------------------------------------------------------- Pozsi · 2009-12-02 20:45 Hi! I want to read UTF-8 encoded data from a XML file. See example programme. If I run it on Linux, it in good order, but on Windows it writes '?' character instead of accentuated letters. What is the problem? Thanks, Pozsi System: Windows XP Home (Hungarian), Lazarus 0.9.28-2, Freepascal 2.2.4-3 Example programme: http://web.t-online.hu/miklosij/other/read_utf8_xml.zip (Sorry, my English is terrible.. ) ---------------------------------------------------------------------- theo · 2009-12-02 21:20 Try: Code: [Select]Memo1.Lines.Add(UTF8Encode(xml.DocumentElement.....etc.. ---------------------------------------------------------------------- Pozsi · 2009-12-02 21:45 It is ok. I did not think to this function necessary on Windows, because it operate good on Linux. (Because UTF-8 is default encode of my linux distro?) Thanks awfully! Pozsi ---------------------------------------------------------------------- alter · 2009-12-03 00:32 QuoteBecause UTF-8 is default encode of my linux distro?That would be my guess. Try changing locale to ISO and see if there is a difference.