help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eww can't display Chinese characters correctly.


From: Lars Ingebrigtsen
Subject: Re: Eww can't display Chinese characters correctly.
Date: Sat, 19 Dec 2020 16:18:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

William Xu <william.xwl@gmail.com> writes:

> I checked the page source in chrome or safari, they don't seem to have
> iso-8859-1 in the page, instead something like this: 
>
> <input class="gNO89b" value="Google Search" aria-label="Google Search"
> name="btnK" type="submit"
> data-ved="0ahUKEwjD_5XP9NntAhWIBGMBHbV0BZUQ4dUDCAw">

Yes, Google serves out HTML that actually works if the User-Agent
indicates the major browsers.  If you 

(setq url-user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36")

that makes Google serve out HTML that's non-buggy.

> Also, if i copy and paste below url directly in safari or chrome, it
> would display the page correctly. 
>
> http://www.google.com/search?gbv=1&iflsig=AINFCbYAAAAAX9eJ576dBCkZ_8MT30T-VWnLwzH6yNx4&bih=&biw=&source=hp&hl=no&ie=ISO-8859-1&btnG=Google-s%C3%B8k&q=+%E4%B8%AD%E6%96%87%E7%BD%91
>
> On the other hand, when I just mouse-click from emacs, which calls
> browse-url, then safari will display the same garbage there, simlar to
> what OP posts. 

I see the same in Chrome whether I go via browse-url or paste the URL.

> I wonder what browse-url is doing in between. 
>
> Is browse-url also used by eww? 

No.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]