I am using a wxHtmlWindow to display a local HTML file.
The HTML file uses UTF-8 encoding (with byte order mark), and the wxHtmlWindow object displays a glitch at the top of the screen (before my first text).
I suspected this to be the unicode BOM, so I edited the HTML file to save it as UTF-8 without BOM, and the glitch disappeared.
The fact is that I must be able to load UTF-8_with_BOM files.
How to remove this glitch?
I am using wxWidgets 2.6.2 on Windows and Linux/GTK, Unicode builds.
wxHtmlWindow and Unicode BOM? Topic is solved
UTF-8 displays fine. Just make sure you specify
in the header. (The file I tested also has an XML declaration with encoding="UTF-8" but I don't know if wxHtmlWindow needs this.)
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />