From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Eww can't display Chinese characters correctly. Date: Tue, 15 Dec 2020 07:22:17 +0800 Message-ID: References: <87sg88xza8.fsf@codeisgreat.org> <87tuso30wh.fsf@gnus.org> <87lfe0307l.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Lars Ingebrigtsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 15 00:22:57 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koxBA-000AB6-QJ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 00:22:56 +0100 Original-Received: from localhost ([::1]:60776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koxB9-0000XX-SW for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Dec 2020 18:22:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koxAk-0000XR-SK for help-gnu-emacs@gnu.org; Mon, 14 Dec 2020 18:22:30 -0500 Original-Received: from mail-yb1-xb2d.google.com ([2607:f8b0:4864:20::b2d]:44449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koxAj-0005HT-9q for help-gnu-emacs@gnu.org; Mon, 14 Dec 2020 18:22:30 -0500 Original-Received: by mail-yb1-xb2d.google.com with SMTP id x2so17126300ybt.11 for ; Mon, 14 Dec 2020 15:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=sOh/oc4tcWnRoRh54pwLZoGAEuFlsbdX0RzK0XPRJKA=; b=WEWikNkPb1wE/4eGf8HzH8jyW1wz8R4Ca/h4T97IH4hxvegYEedHQp1SYIkIB0RzgV epEj9bcye/sS0JErXymstiDA5UVqWXtwRfMJrgcj0qkyfnM9jTElgSrmuTGyllEVwbgH ZCdw2NHolFP72jmrfvqA2KADXB4+A5tPVEJ4exoLT7YFRDNa2OAbUco43R41A+5KKH3h 6q5hRx1u0S0IBCrzd3ICBi6NZNtysN0Tv+PUgiHAVaS+cDbrBoWMhk4vnSXPCTYGCvtp QeatyO2GhhY9IxR1M5YQyGHIpF9IBNaSXUjdk1eL9+mFPUu0F5K+ZjBbE4sqjH1xH76A vbgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sOh/oc4tcWnRoRh54pwLZoGAEuFlsbdX0RzK0XPRJKA=; b=id//7jzmjb6diN4CcJfwyG2mTrrYMgmcIlubr4OiS528JE+iF+dngn5ShED/fEa5lK XEHwJF+yKmgILu2Bva2lek89rfR19veYB/6JiP8IJjLb2BkhI6AOLUY7owdU164oWopv L1mLkYYBI/c+rBcBP5QbL2L+Z6w10UAQII0cEILJIKikRzuQP9G1RfPGiqMUZeAg5znv S5N6yMbKRCifIZalzHWvGXiifmZLwpXrZEpQ8d/pBfGWnoAnaOrx9lofISTE52owOGeb b9xclJvArvvX/EEop8rLieVNBstUbGYNGyzatfY+1Ayrpede4TwMJSjYkj63sFqd62el o9uQ== X-Gm-Message-State: AOAM533M5xhhN6bEJrTR9nswz8GsuuKSF7b4mRJ2Disbqf3o0u6L+kSY SX+tvJveptHungexsqRi+XNiHIxl4XqOHIoW32k= X-Google-Smtp-Source: ABdhPJzstAWc/MQOt/qRbTf7nYV+NAn5K2ZKpkR4tda7eBjTOcRCRTFPKPxCTVahXkBOoZ4iIoS3oO28eekFmda7QEw= X-Received: by 2002:a25:c74e:: with SMTP id w75mr38033036ybe.520.1607988148402; Mon, 14 Dec 2020 15:22:28 -0800 (PST) In-Reply-To: <87lfe0307l.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2d; envelope-from=hongyi.zhao@gmail.com; helo=mail-yb1-xb2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126382 Archived-At: On Mon, Dec 14, 2020 at 10:56 PM Lars Ingebrigtsen wrote: > > Hongyi Zhao writes: > > > See the attached file for more information. > > Oh, fun. The test case is: > > M-x eww RET google.com RET > > type in > > =E4=B8=AD=E6=96=87=E7=BD=91 > > in the search field, and Google will then redirect you to: > > http://www.google.com/search?gbv=3D1&iflsig=3DAINFCbYAAAAAX9eJ576dBCkZ_8M= T30T-VWnLwzH6yNx4&bih=3D&biw=3D&source=3Dhp&hl=3Dno&ie=3DISO-8859-1&btnG=3D= Google-s%C3%B8k&q=3D+%E4%B8%AD%E6%96%87%E7%BD%91 > > Which gives you: > > Content-Type: text/html; charset=3DISO-8859-1 > > in the headers and then > > > > in the body. So it's another example of Google Quality. Wonderful analysis, but I still don=E2=80=99t understand how you came to th= is conclusion from the above URL. > > eww heeds the Content-type header over the meta charset, which is the > same as Firefox... and Chrome, too (just try that URL). > > So it's a Google bug, not an Emacs bug. --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China