help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change input coding


From: Reiner Steib
Subject: Re: change input coding
Date: Mon, 11 Apr 2005 13:37:43 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

On Mon, Apr 11 2005, Uwe Mayer <merkosh@hadiko.de> 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 <news:v9d5u7we9g.fsf@marauder.physik.uni-ulm.de> ... ]

`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, <menu-bar> <options> <mule>
| <set-various-coding-system> <revert-buffer-with-coding-system>.
| (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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]