QString from QNetworkReply, how to decode remaining HTML
-
I have a
QNetworkReplywhich contains a HTML page, i can useQString::fromLatin1(or evenQString::fromUtf8which gives the same result) to get a usableQStringand parse it withQRegularExpression, the problem is that some encoded HTML characters are still like'or&and i don't know how to get the character back from it. -
Hi,
One possibility would be to use QString::replace to change them back to what you want.
Hope it helps
-
Hi,
One possibility would be to use QString::replace to change them back to what you want.
Hope it helps
-
AFAIK, these codes are standard so you would have to write one method that goes through the list of them and apply that to your string.