]> code.delx.au - gnu-emacs/commit
Fix decoding of text in URLs retrieved by EWW
authorEli Zaretskii <eliz@gnu.org>
Tue, 22 Dec 2015 16:57:51 +0000 (18:57 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 22 Dec 2015 16:57:51 +0000 (18:57 +0200)
commit9b0f1824d766139d3469c6837fb0b9db411a15b6
treec4affe9c063fa13ed1ecf8e8926c301db49762ec
parentbe11f9460a9143981bb20d709dbd04932f744099
Fix decoding of text in URLs retrieved by EWW

* lisp/net/eww.el (eww-render): Pass 'charset' to
'eww-display-raw'.  Use the value of 'last-coding-system-used', if
non-nil, to set 'buffer-file-coding-system' of the buffer where we
show the URL.
(eww-display-html, eww-display-raw): Decode the text correctly,
using the charset found in the headers, and defaulting to UTF-8.
If the user told us to use a specific encoding, override the
charset from the headers.  (Bug#22222)
lisp/net/eww.el