From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: switch between utf-8 and latin-1 (ARGH!!) Date: Sun, 19 Jul 2009 01:54:24 +0200 Organization: Informatimago Message-ID: <87r5wdcztb.fsf@galatea.local> References: <1Sn8m.2418$vm5.686@tornado.fastwebnet.it> <87vdlpdg9l.fsf@galatea.local> <87vdlpaih7.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247964050 16836 80.91.229.12 (19 Jul 2009 00:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jul 2009 00:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 19 02:40:43 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MSKSJ-0006HD-2P for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Jul 2009 02:40:43 +0200 Original-Received: from localhost ([127.0.0.1]:42036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSKSI-0007mu-Gy for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jul 2009 20:40:42 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-X-Trace: individual.net AKwSkkq5TIivaookzPkH1Afz1xgaGEjzaue0GKsm8LrL3ShNe/ Cancel-Lock: sha1:NWQ3OWM1YjNmNmYyNjBiZTEyYTQwZmIxYWYwYmM3MWVhZWQwOWFjYw== sha1:RNNRlGOWyML7/eGY8ItujdOO43k= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) Original-Xref: news.stanford.edu gnu.emacs.help:171029 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66217 Archived-At: ?manu* writes: > Anselm Helbig ha scritto: >> You don't need another editor to do that. Just try to understand what >> emacs is doing here: when you added the line about the coding system >> emacs understood that you want the contents of the buffer saved with >> this coding system. Emacs can not know that the characters on screen >> are not what you want! So you first have to get to the point where >> Emacs has the correct notion about the coding system. Pascal already >> pointed you to `set-buffer-file-coding-system', > > This was not useful because it does not change the meaning of the > caracters in the buffer. It only changes the encoding of the > characters when saving to file. Normally, you would have checked the user manual, and on the page about set-buffer-file-coding-system, you would have seen the description of universal-coding-system-argument... (info "(emacs)Text Coding") File: emacs, Node: Text Coding 27.11 Specifying a Coding System for File Text ============================================== ... >> another way is to use >> `universal-coding-system-argument' (C-x RET c) immediately before >> opening a file. > > ...yes this was the right command to use... > > thanks, > E. -- __Pascal Bourguignon__