[Webkit-unassigned] [Bug 137756] WKWebView: JavaScript fails to load, apparently due to decoding error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 16 15:43:18 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137756

Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andersca at apple.com

--- Comment #8 from Alexey Proskuryakov <ap at webkit.org> ---
Interesting. One thing about the large script is that it has an apostrophe character in it, which makes it non-ASCII.

It is actually somewhat accidental that documents loaded via -loadHTMLString get UTF-16 encoding. The string goes through several conversions, and if it happens to be Latin-1 in the end, then the document gets latin-1 encoding, and otherwise it gets UTF-16 encoding. But it is unpredictable, and actually depends on OS version and other factors.

We should stop exposing this internal processing detail, so please don't rely on it as a workaround. The right workaround is to have encoding explicitly specified by subresources.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141016/a65e8108/attachment-0002.html>


More information about the webkit-unassigned mailing list