[Webkit-unassigned] [Bug 155836] New: default-charset not honored by webkit_web_view_load_html
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 24 06:03:21 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=155836
Bug ID: 155836
Summary: default-charset not honored by
webkit_web_view_load_html
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Gtk
Assignee: webkit-unassigned at lists.webkit.org
Reporter: kapouer at melix.org
CC: bugs-noreply at webkitgtk.org
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:
<!doctype html>
<html>
<head>
<script>console.log(document.characterSet);</script>
</head>
</html>
-> prints "iso-8859-1", expected result was "utf-8".
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("é");` in a test.js file and loading it.
When using webkit_web_view_load, this problem does not happen.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160324/5708be91/attachment.html>
More information about the webkit-unassigned
mailing list