<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - default-charset not honored by webkit_web_view_load_html"
   href="https://bugs.webkit.org/show_bug.cgi?id=155836">155836</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>default-charset not honored by webkit_web_view_load_html
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kapouer&#64;melix.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,
i'm seeing this since webkitgtk 2.12.0.

1) Set setting default-charset = utf-8 on WebView
2) Using webkit_web_view_load_html, load an html string:
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script&gt;console.log(document.characterSet);&lt;/script&gt;
&lt;/head&gt;
&lt;/html&gt;


-&gt; prints &quot;iso-8859-1&quot;, expected result was &quot;utf-8&quot;.
webkitgtk 2.10 prints the expected result.

It's not only the value of that property that is wrong, it's also
the charset used by default for decoding javascript files (this can
be seen by putting `console.log(&quot;é&quot;);` in a test.js file and loading it.

When using webkit_web_view_load, this problem does not happen.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>