Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebKit and windows-1251 encoding

QtWebKit and windows-1251 encoding

Scheduled Pinned Locked Moved Unsolved Qt WebKit
2 Posts 2 Posters 896 Views
  • 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 Offline
    P Offline
    popov895
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by
      #2

      It might be that QtWebKit is built without ICU support

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved