From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phoenix Gris Newsgroups: gmane.emacs.help Subject: Re: File Encoding Issue on Windows Date: Wed, 13 Mar 2013 05:33:01 -0700 (PDT) Message-ID: <78255fce-3fce-4fa3-b594-d8a639493675@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363185312 10101 80.91.229.3 (13 Mar 2013 14:35:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 14:35:12 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" , Tech Stuff To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 13 15:35:37 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 1UFmmH-0001wU-KK for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 15:35:37 +0100 Original-Received: from localhost ([::1]:47119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFmlv-0003d0-44 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 10:35:15 -0400 X-Received: by 10.224.0.144 with SMTP id 16mr10614534qab.8.1363177981520; Wed, 13 Mar 2013 05:33:01 -0700 (PDT) X-Received: by 10.49.29.99 with SMTP id j3mr1470763qeh.38.1363177981489; Wed, 13 Mar 2013 05:33:01 -0700 (PDT) Original-Path: usenet.stanford.edu!t2no2298691qal.0!news-out.google.com!k8ni1qas.0!nntp.google.com!dd2no188644qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.47.217.67; posting-account=QsRNlgoAAABUquA8UI-PJRqHiOxACzwi Original-NNTP-Posting-Host: 206.47.217.67 User-Agent: G2/1.0 Injection-Date: Wed, 13 Mar 2013 12:33:01 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:197228 X-Mailman-Approved-At: Wed, 13 Mar 2013 10:34:45 -0400 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:89507 Archived-At: Hello, I am using Emacs, 23.3 on three different machines: Ms-Windows XP, RedHat L= inux sever and Xunbuntu PC, I have the same problems on the three machines.= It is not all the time, but most of the time, and this is not between dif= ferent software, it is Emacs itself that doesn't display in the right encod= ing. Most of my writings are in French with all its accents. Most of the = time I have to do =ABC-x RET f=BB to select the encoding to save the file, = then =ABC-x RET r=BB to revert it, I find this veryyyyyyyyyyy tedius!!! Similarly, setting file local variables for each file is very tedius when y= ou navigate through lors of files!!! On one of the machine I have this in my .emacs file, but it doesn't do the = trick!!! (setq buffer-file-coding-system 'utf-8-unix) (setq file-name-coding-system 'utf-8-unix) (setq default-keyboard-coding-system 'utf-8-unix) (setq default-process-coding-system '(utf-8-unix . utf-8-unix)) (setq default-sendmail-coding-system 'utf-8-unix) (setq default-terminal-coding-system 'utf-8-unix) (setq buffer-file-coding-system 'utf-8-unix) The process-coding-system is because I interact with statistical softwares = through Emacs, some data is characters and it as accents!!! Is there something that could be put in .emacs files so the encoding is utf= -8 for everything, NO MATTER WHAT??? Thanks, G=E9rald Le lundi 11 mars 2013 23:08:46 UTC-4, Tech Stuff a =E9crit=A0: > Hi, >=20 > I use Emacs on Windows to write Spanish text.=A0 In order to enter the sp= ecial characters I installed the US international keyboard layout.=A0 I nev= er changed any variables in Emacs (in fact, I don't think that I've ever ev= en touched the .emacs file on this machine) and things have just always wor= ked fine.=A0 Last week however, when I opened one of my recent files in not= epad to print it out, there were some extra characters, one before every ex= tended character (ie, =E9) in the file.=A0 I googled around and I made some= changes (unfortunately, I don't recall exactly what they were, but I think= that I explictly saved the files in UTF-8) and I thought that all was good= .=A0 Not so much though.=A0 Today I opened one of the files in Emacs and ag= ain the special characters are incorrect, though this time in new > and interesting ways.=A0 Here's an example of what I see in the buffer: >=20 > =A0=C2=BFEn qu=C3=A9 fecha llegaron >=20 > when I should see: >=20 > =BFEn qu=E9 fecha llegaron >=20 > (hopefully these things post correctly to the mail lists) >=20 >=20 > Obviously this has something to do with encoding (though I can't imagine = why it started all of the sudden) but I'm afraid that I'm out of my depth.= =A0 I only want to be able to write text in emacs and save it such that it = can subsequently be opened both in ms notepad and emacs again and have all = of the characters render correctly.=A0 Can anyone point me in the right dir= ection?=A0 I'd be happy to post any information you might need to diagnose = this.=A0 Here is the version information: >=20 > GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE >=20 > Thanks!