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: Mon, 14 Dec 2020 22:38:33 +0800 Message-ID: References: <87sg88xza8.fsf@codeisgreat.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="3356"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 14 15:54:19 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 1kopEw-0000m9-P7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Dec 2020 15:54:18 +0100 Original-Received: from localhost ([::1]:37698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kopEv-0008I9-PX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Dec 2020 09:54:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koozx-0001fS-1t for help-gnu-emacs@gnu.org; Mon, 14 Dec 2020 09:38:49 -0500 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:40770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koozv-0007w2-CF for help-gnu-emacs@gnu.org; Mon, 14 Dec 2020 09:38:48 -0500 Original-Received: by mail-lf1-x129.google.com with SMTP id m12so30654330lfo.7 for ; Mon, 14 Dec 2020 06:38:46 -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 :content-transfer-encoding; bh=wDwcuWk4zsAUKMiecAivxmjd+P1MqJLllQUiOkvaPHY=; b=DHImcJ2nPRnqtqiZYo/oeYYlXMeQJrsoJ0v4k6SmRR69smI2BLQh6EfkusQHJPvsvP 94ENiLNmrHlFwSXh6/tOMC4PLdCN3PmggR/TSYSWmmkcXo/N7W6/E7KKjtyupTmjLky8 it4puj6JXcAmIJr0q2U6ZNcZ4dDUHIQnF9luJvMoGAxw5b5+B1E17nrS2amZZUmG8sbv ZcG+U6Py1IJSGtq43h9c4+hhev4L5Sj4rYaNH+csPnMj7gAHbpMzz/t2UTlZNzcouKuA e5H4Z6rMvRVbJfpxbin89P0b9Phb4+CF0A+VLE6iGDj2fzPx5XpDDUNlOPy5yrbk7gHn dtFw== 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:content-transfer-encoding; bh=wDwcuWk4zsAUKMiecAivxmjd+P1MqJLllQUiOkvaPHY=; b=mkBhUNIVgh88/sQcnpb5/cOFMdADV4cCHHX/JkKjgjqGHYFrPQdrpcsAWme4wClcNc A0X0wiUS/ER+2dozhFO/UE8gnF4wThD6t5Xqlr9NoZVE0JvpVF2Dlau7P0yfNkma4PEG zCBK6ncDI5Zt+A4Q+F6TYSOdSV+6SAHlMV58Yo3yt4EFDFo/x+agPUzn2Xk6ayMMdNm2 VyyDSMMweq77lUZjoXxycVTfzKO4iB+eTkQSopyUfDFEGIVBC2VzH20jUgIOeG34uLgs Tvd6kcCaQj0Cq+PhHfeSQYh/IQ/3Bf4xtcCZPkHiVnMwSe7O7z08tcV8H2q+6X5k8KUW chpw== X-Gm-Message-State: AOAM532xFokQ6gzHuyHlBy3Y9lH2nhL0c+XxXUnTgIdcu3jHDJlJGML/ pIrzu+uOH0j3nEbQxBXGJy71O4STe3RloYQZeq9En3BRPvIr6Tcs X-Google-Smtp-Source: ABdhPJwcwg5XjF/8HSP6Hjb8a6e6jTUlTnZeFUT0Sxi3xIbcHvTfw8OdwxeeTAVWNtdj2WzYJp8ky+ojZHAWWQERoKo= X-Received: by 2002:a2e:8714:: with SMTP id m20mr10191014lji.320.1607956725050; Mon, 14 Dec 2020 06:38:45 -0800 (PST) In-Reply-To: <87sg88xza8.fsf@codeisgreat.org> Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x129.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:126372 Archived-At: On Mon, Dec 14, 2020 at 10:01 PM Pankaj Jangid wro= te: > > Hongyi Zhao writes: > > > On Ubuntu 20.10, I compiled and installed the git master version of > > emacs. When I try to browse the web with eww, I find that all Chinese > > characters will show as garbled. > > > > Any hints for fixing/solving this problem? > > You need =E2=80=98set-fontset-font=E2=80=99 to tell Emacs what font to us= e for the > (language) script. Example, > > (set-fontset-font t 'devanagari "Noto") > > This sets Noto font for Devanagari script in the default fontset. =E2=80= =98t=E2=80=99 is > for default fontset. The eaf-open-browser command shipped in EAF doesn't have this problem. Based on my tries, EWW is pretty poor as a browser. Regards --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China