From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.help Subject: Re: File Encoding Issue on Windows Date: Tue, 12 Mar 2013 16:32:01 +0000 Message-ID: <87a9q8shoe.fsf@riseup.net> 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 Content-Type: text/plain X-Trace: ger.gmane.org 1363105962 3358 80.91.229.3 (12 Mar 2013 16:32:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2013 16:32:42 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Mar 12 17:33:05 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 1UFS8O-0000Ij-Ud for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 17:33:05 +0100 Original-Received: from localhost ([::1]:44769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFS82-0005wO-L0 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 12:32:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFS7h-0005nx-Rm for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 12 Mar 2013 12:32:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFS7Z-000254-OZ for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 12 Mar 2013 12:32:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFS7Z-000250-IS for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 12 Mar 2013 12:32:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UFS7u-0008Nh-8w for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 12 Mar 2013 17:32:34 +0100 Original-Received: from torland1-this.is.a.tor.exit.server.torland.is ([37.130.227.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Mar 2013 17:32:34 +0100 Original-Received: from wgreenhouse by torland1-this.is.a.tor.exit.server.torland.is with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Mar 2013 17:32:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: torland1-this.is.a.tor.exit.server.torland.is X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:HLvhCc+ToRs162iyi064rxKMEQA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:89491 Archived-At: Hi, Tech Stuff writes: > Hi Peter, > > Thanks for taking the time to reply. Though it was useful, I'm still > confused about how to resolve this issue. To be clear, when I posted > yesterday, it was in emacs that I was seeing the extraneous > characters, not in notepad. However I just opened it again in > notepad to check on the encoding and now I'm seeing the extra > characters there as well. So something must have changed when as > part of trying to figure out what was going on, I saved the file in > Emacs. Emacs seems to be the culprit. Is there something that I can > put in my .emacs to tell it to save automatically in utf-8? Or am I > maybe still not understanding things. > > Thanks again. > > -ts1971 The following should unequivocally set utf-8 in all relevant contexts: (setq locale-coding-system 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) The above is tested by me only as far back as Emacs 23. On an unrelated note, however, you should consider upgrading if you possibly can; according to http://www.gnu.org/software/emacs/#Releases the newest Emacs 22 is nearly 5 years old already. -- Regards, WGG