I work with C ++ and QT and have a problem with German umlauts. I have a QString like "wir sind müde" and you want to change it to "wir sind m & uuml; de" in order to correctly display it in QTextBrowser.
I tried to do it like this:
s = s.replace( QChar('ü'), QString("ü"));
But that will not work.
Also
s = s.replace( QChar('\u00fc'), QString("ü"))
does not work.
When I repeat all the characters of a string in a loop, "ü" are two characters.
Can someone help me?
source share