Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QtWebKit and windows-1251 encoding

    Qt WebKit
    2
    2
    741
    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.
    • P
      popov895 last edited by

      Hi! I have a simple html file:

      <!DOCTYPE html>
      <html lang="ru">
          <head>
              <title>Encoding Test</title>
              <meta charset="windows-1251">
          </head>
          <body>
              Некоторый текст
          </body>
      </html>
      

      When I try to load it into QWebView I get ASSERTION FAILED:

      ASSERTION FAILED: strcmp(alias, name) == 0 || atomicName
      d:\qt_webkit_vs17\qtwk\source\webcore\platform\text\TextEncodingRegistry.cpp(177) : WebCore::addToTextEncodingNameMap
      

      When I remove <meta> tag, that file loads successfully, but QWebView treats it as encoded with Latin-1 encoding. Also, when I load any web page without <meta> tag but with Content-Type: text/html; charset-1251 in the headers, I get ASSERTION FAILED too.

      qWebKitVersion returns me 538.1. Can anyone check this behavior for themselves and explain me what is wrong with windows-1251 encoding?

      1 Reply Last reply Reply Quote 0
      • K
        Konstantin Tokarev last edited by

        It might be that QtWebKit is built without ICU support

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