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: change input coding Date: Mon, 11 Apr 2005 13:37:43 +0200 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 1113221926 15559 80.91.229.2 (11 Apr 2005 12:18:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2005 12:18:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 14:18:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DKxqm-0001YE-UX for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Apr 2005 14:17:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKxQt-0000Tr-9E for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Apr 2005 07:50:23 -0400 Original-Newsgroups: gnu.emacs.help X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:EWMy3wsAI7GOcz+pTg7l87I2Eqk= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1113221763 134.60.10.123 (11 Apr 2005 14:16:03 +0200) Original-Lines: 34 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-ulm.de!bridgekeeper.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:129988 Original-To: help-gnu-emacs@gnu.org 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:25554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25554 On Mon, Apr 11 2005, Uwe Mayer wrote: > How can I load a utf-16-be file in emacs such that it is displayed > propperly? The set-buffer-file-coding-system only changes the > current coding which doesn't get rid of the ^@ (which are actually > 0x00 characters). [ C&P from ... ] `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. `---- [ ... end of C&P ] `file-coding-system-alist' might also be an option. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/