QString from QNetworkReply, how to decode remaining HTML
Unsolved
General and Desktop
-
I have a
QNetworkReply
which contains a HTML page, i can useQString::fromLatin1
(or evenQString::fromUtf8
which gives the same result) to get a usableQString
and 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
-
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.