• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    How can I tell Opera the correct encoding for a page?

    Opera for Mac
    3
    3
    7855
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jc1742
      jc1742 last edited by

      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:
      http://www.zein.se/patrick/3000char.html

      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.)

      Reply Quote 0
        1 Reply Last reply
      • avl
        avl Opera last edited by

        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.

        Reply Quote 1
          1 Reply Last reply
        • slytheringirl
          slytheringirl last edited by

          Thank you! Thank you! Thank you! 🙇🏻♀ It's been driving me crazy trying to figure out how to fix the encoding on some pages. The extensions worked like a charm! 😄

          Reply Quote 0
            1 Reply Last reply
          • First post
            Last post

          Computer browsers

          • Opera for Windows
          • Opera for Mac
          • Opera for Linux
          • Opera beta version
          • Opera USB

          Mobile browsers

          • Opera for Android
          • Opera Mini
          • Opera Touch
          • Opera for basic phones

          • Add-ons
          • Opera account
          • Wallpapers
          • Opera Ads

          • Help & support
          • Opera blogs
          • Opera forums
          • Dev.Opera

          • Security
          • Privacy
          • Cookies Policy
          • EULA
          • Terms of Service

          • About Opera
          • Press info
          • Jobs
          • Investors
          • Become a partner
          • Contact us

          Follow Opera

          • Opera - Facebook
          • Opera - Twitter
          • Opera - YouTube
          • Opera - LinkedIn
          • Opera - Instagram

          © Opera Software 1995-2025