I have a set of HTML files, that are used in 2 different ways in my program: I have QTextBrowser for displaying the HTML pages normally inside my program and I parse manually header information from these files in order to display the information in a completely separate list.
The problem is, that the language in these files contains special characters, that are encoded as HTML entities, for example:
This is displayed correctly on my QTextBrowser, but in the separate list this is parsed wrong: I simply read this line with standard getLine() to std:string, so the string will contain the instead of ć.
Is there any easy way around this, like how to convert these HTML entities to QString? Or would the better option to edit the HTML files somehow to contain the actual character ć instead of the entity, without breaking the QTextBrowser functionality?
Bookmarks