0

Good evening, I am using tinyXML2 for parsing my XML-Files. I am using C++ builder 10.4. from embarcadero. So my problem is. that the classes of tinyxml return text as char* Arrays. So for example:

AnsiString mytext = node->GetText();

where node is a node in my file. Unfortunately, German special characters like Ä, Ü, Ö, ß will not be translated correctly into Ansi. So I need some help. best regards Andreas

Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
Hoeh
  • 45
  • 4
  • This might help: https://stackoverflow.com/questions/17676169/utf-8-and-tinyxml (I googled for [utf-8 tinyxml]). You want to include a *minimal working example* in your question. – Unapiedra Mar 21 '21 at 21:36
  • TinyXML2 uses UTF-8 encoded character strings. Such encoding caters for all the languages, including German. It does not create Ansi strings. You need to find out how to convert UTF-8 encoded `char*` to a suitable string class or use it as is. – Andrew Truckle Apr 05 '21 at 20:43

0 Answers0