From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: File Encoding Issue on Windows Date: Tue, 12 Mar 2013 18:23:42 +0100 Message-ID: References: <1363057726.11242.YahooMailNeo@web165001.mail.bf1.yahoo.com> <1363100259.90696.YahooMailNeo@web165001.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363111235 27669 80.91.229.3 (12 Mar 2013 18:00:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2013 18:00:35 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Tech Stuff Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 12 19:01:00 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UFTVT-0004SQ-QG for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 19:00:59 +0100 Original-Received: from localhost ([::1]:43582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFTV7-0001s0-FR for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 14:00:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFTTs-0000X7-Uf for help-gnu-emacs@gnu.org; Tue, 12 Mar 2013 14:00:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFTSQ-0002fY-T9 for help-gnu-emacs@gnu.org; Tue, 12 Mar 2013 13:58:56 -0400 Original-Received: from mout.web.de ([212.227.17.11]:64841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFSvS-00029U-Id for help-gnu-emacs@gnu.org; Tue, 12 Mar 2013 13:23:46 -0400 Original-Received: from sumac.fritz.box ([95.223.148.182]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0MGRZc-1U2FW23wgq-00DjuY; Tue, 12 Mar 2013 18:23:43 +0100 In-Reply-To: <1363100259.90696.YahooMailNeo@web165001.mail.bf1.yahoo.com> X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:BLO5ZMEIUpsqu+GLAumls1SNBRpDcQZn9D6wIeUztse DCmj/PELS6fvGflSAkXoj1GRTwPwEGZTS/RWVRwlBB81UO9vE9 YY9EOhv6/mW8uWO4E9fnsgJ2zwhtjp6Ib3VdgWPVQQxVt0cAMk o6nRt65K9PWjQaUK9NkNeoqrpdZ+r1R135DbAkSpUnkr1rJuCB eoQdazK5RRyb/UlVQJg4A== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89494 Archived-At: Am 12.03.2013 um 15:57 schrieb Tech Stuff: > To be clear, when I posted yesterday, it was in emacs that I was = seeing the extraneous characters, not in notepad. That makes it clearer! GNU Emacs 22.1 is pretty old and has only = rudimentary UTF-8 support. The recent GNU Emacs 24.x (24.3. was just = released) versions are much better. How to handle encodings? For GNU Emacs you can use file-local variables = as in: ;; -*- mode: Emacs-Lisp; coding: utf-8-unix; -*-=20 or %%% Local Variables: %%% mode: LaTeX %%% TeX-engine: xetex %%% fill-column: 99999 %%% coding: utf-8-unix %%% TeX-command-default: "XeLaTeX5E" %%% End: % The first example is meant for the file's beginning, the latter for its = end. (Notice the different comment characters!) When you see, i.e. know, = that GNU Emacs is using the wrong encoding to display (present) the = file's contents, you can use C-x RET r RET = (revert-buffer-with-coding-system) to try another encoding. Then record = this value in a file-local variable and save the file. It's all in the documentation. -- Greetings Pete Rain is saved up in cloud banks.