On Mon, Apr 11 2005, Uwe Mayer <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> ... ] `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/ _______________________________________________ Help-gnu-emacs mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
