All the other browsers on my Macbook Pro have a View -> Text Encoding menu that lets me correct an incorrect encoding of a page, but Opera (no longer) seems to have this ability. For an example of a page that can't be displayed correctly in Opera, try:
The problem with this page is that, although its HTML header contains the correct encoding (GB2312), the HTTP headers declare it to be charset=iso-8859-1, which gives Latin1 gibberish instead of the Chinese characters. The owner of the page probably can't correct this, because fixing the HTTP headers requires permission to change the web server's config files.
The same gibberish shows up on a few other browsers, but I can fix it in the browsers' menus, but this doesn't work with Opera. Some browsers handle it correctly, by using the HTML header's charset declaration when the two conflict. Also, I copied the page to my own web site, where I could tell the server to not send the charset= field in the Content-Type HTTP header. It displays correctly in Opera, showing that Opera does understand the HTML header charset and will use it if the HTTP headers don't declare a charset. (But my copy of the page won't contain updates to the original, so I'd rather make the browser handle it correctly).
So is there any way to persuade Opera to override the incorrect charset in the HTTP headers in cases like this? Or is there some way to change Opera's charset by hand for a single page, as can be done with most other browsers that I've seen?
(The best solution would be to update Opera to ignore the HTTP header charset in cases like this. But having a menu item to force a charset for a page would be very useful to those of us doing a lot of web testing.)
Hi @jc1742, the removal of the text encoding menu follows a similar move by the core of Chrome, on which Opera is based. You can read more about the decision and its effects in Google's bug tracker here: https://bugs.chromium.org/p/chromium/issues/detail?id=597488 .
I don't see any extensions in Opera's collection right now that would allow you to change it, but there's an extension to install Chrome extensions here: https://addons.opera.com/en-gb/extensions/details/download-chrome-extension-9/?display=en
After installing that you should be able to use: https://chrome.google.com/webstore/detail/set-character-encoding/bpojelgakakmcfmjfilgdlmhefphglae?hl=en which is an extension allowing you to change text encoding.