From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pieter van Oostrum Newsgroups: gmane.emacs.help Subject: Re: How to save a file with embedded unicode maths symbols Date: Tue, 10 Mar 2020 11:43:26 +0100 Message-ID: References: <5e13d072-68da-4d3b-a62f-e48c0543b0f9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 10 11:47:25 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 1jBcQ1-000QgA-3C for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Mar 2020 11:47:25 +0100 Original-Received: from localhost ([::1]:57278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBcQ0-0002iK-47 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Mar 2020 06:47:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53141) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBcMJ-0007pW-8l for help-gnu-emacs@gnu.org; Tue, 10 Mar 2020 06:43:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBcMH-0005q9-3Z for help-gnu-emacs@gnu.org; Tue, 10 Mar 2020 06:43:34 -0400 Original-Received: from smarthost-a.hosting2go.nl ([83.137.198.201]:37841) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBcMG-0005nD-SA for help-gnu-emacs@gnu.org; Tue, 10 Mar 2020 06:43:33 -0400 X-ASG-Debug-ID: 1583837009-0ac37b67521d3eb40001-2yy5ZX Original-Received: from server24.hosting2go.nl (server24.hosting2go.nl [185.135.241.24]) by smarthost-a.hosting2go.nl with ESMTP id EL2UqOmJXx5TJYGD (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 10 Mar 2020 11:43:29 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Apparent-Source-IP: 185.135.241.24 Original-Received: (qmail 25706 invoked from network); 10 Mar 2020 10:43:29 -0000 Original-Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 10 Mar 2020 10:43:29 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Original-Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 241B5AAC6745 for ; Tue, 10 Mar 2020 11:43:27 +0100 (CET) X-ASG-Orig-Subj: Re: How to save a file with embedded unicode maths symbols In-Reply-To: <5e13d072-68da-4d3b-a62f-e48c0543b0f9@googlegroups.com> (Angus Comber's message of "Tue, 10 Mar 2020 02:38:46 -0700 (PDT)") X-Barracuda-Connect: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Start-Time: 1583837009 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.201:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 1476 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests= A-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.80576 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 83.137.198.201 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:122553 Archived-At: Angus Comber writes: > On Monday, March 9, 2020 at 4:27:32 PM UTC, Pieter van Oostrum wrote: [...] >> Did you open it in Emacs? >> What you see is the utf-8 encoding of =CE=A6 interpreted on reading as >> latin-1 (iso-8859-1) or a similar encoding, like Windows-1252. Is your >> Emacs configured to prefer one of these encodings? > I have: > > GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) > of 2019-04-13 > > I have not made any specific encoding config changes as far as I am aware. > > Yes I opened the file in emacs. > > Is there an emacs option to switch to utf-8 encoding when I view the file? Yes. You can use C-x RET c (universal-coding-system-argument), then specif= y utf-8, and the give the command to open the file (like C-x C-f). If you regularly work with utf-8 files (something I would recommend) then i= t is easier to set utf-8 as your preferred encoding. As it seems this is cu= rrently not the case, check your LANG environment variable or related ones.= It may specify something that causes latin-1 or so to be the default encod= ing. As you experience, latin-1 or even Windows-1252 (which is an extension= of latin-1) are not sufficient for today's international/scientific enviro= nment. More specifically, it cannot encode the =CE=A6. You can find more information in the Emacs info file: (info "(emacs) Langua= ge Environments") --=20 Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]