From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: switching between locales (esp. iso-8859-1 and iso-8859-15) Date: Thu, 10 Mar 2005 19:24:11 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110479172 28835 80.91.229.2 (10 Mar 2005 18:26:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 18:26:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 19:26:11 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9SL7-00087c-0A for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2005 19:24:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9Sa2-0005Yh-7p for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2005 13:40:18 -0500 Original-Newsgroups: gnu.emacs.help X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24747 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24747 On Thu, Mar 10 2005, Tapani Tarvainen wrote: > In particular, I frequently have to deal with files in ISO-8859-1 > and ISO-8859-15 codings, and while emacs is perfectly able to > display either correctly if it starts with the right foot, er, > with correct locale, I can't figure out how to make it change > its opinion of the encoding once it has opened the file. `C-x RET c NEWCODING-SYSTEM RET C-x C-v RET' Emacs 22 will have a more simple command for this task: ,----[ `C-h k C-x RET r' ] | C-x RET r runs the command revert-buffer-with-coding-system | which is an interactive compiled Lisp function in `international/mule'. | It is bound to C-x RET r, | . | (revert-buffer-with-coding-system CODING-SYSTEM &optional FORCE) | | Visit the current buffer's file again using coding system CODING-SYSTEM. | For a list of possible values of CODING-SYSTEM, use M-x list-coding-systems. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/