[Webkit-unassigned] [Bug 199494] [WPE][GTK] Wrong default encoding when browsing a local directory

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 12 08:23:27 PDT 2019


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

Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcatanzaro at igalia.com
            Summary|[GTK] Wrong default         |[WPE][GTK] Wrong default
                   |encoding when browsing a    |encoding when browsing a
                   |local directory             |local directory

--- Comment #1 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Hm, it's tricky.

For the directory view, we had better assume UTF-8 indeed. Obviously assuming Latin-1 is wrong. I have no clue where we would have to dive into the code to fix that.

But for web content, the default has to be ISO 8859-1 (Latin-1) for web compatibility.

Then what about e.g. text files accessed via file://? We use Latin-1 for these too, and it's always wrong. Needs some thought and investigation as to what Chrome does when there are no HTTP headers to indicate encoding and where the content is not an HTML document. (Firefox tries to guess the encoding, but that's risky. Not sure we want to try that.)

-- 
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/20190712/d117f428/attachment.html>


More information about the webkit-unassigned mailing list