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: Hongyi Zhao
Subject: Re: Eww can't display Chinese characters correctly.
Date: Sun, 20 Dec 2020 09:13:38 +0800

On Sat, Dec 19, 2020 at 11:19 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
> 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.

I confirm it does the trick for me too.

>
> > 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.

Me too.

>
> > 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
>


-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

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