When you attempt to load an html page from a URL using loadFromUrl the encoding is incorrect. I have not found this problem when attempting to open the same html page but as a file on the local server.