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

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

Re: change input coding


From: Peter Dyballa
Subject: Re: change input coding
Date: Mon, 11 Apr 2005 11:05:57 +0200


Am 11.04.2005 um 08:32 schrieb Uwe Mayer:

I know that it is utf-16-be as I can decode it with Python. How can I load a
utf-16-be file in emacs such that it is displayed propperly?


There are (at least) two ways:

1. Create an empty file (b) containing only

        <!-- -*- mode: Text; coding: utf-16-be; -*- -->

  and cat the original file (a) into that (cat a >> b).

2. Temporarily set:

           (setq default-buffer-file-coding-system 'utf-16-be)
           (set-default-coding-systems                   'utf-16-be)
           (prefer-coding-system                                 'utf-16-be)

   (Copy into *scratch* buffer, mark region, eval-region.)

--
Mit friedvollen Grüßen

  Pete

“Computers are good at following instructions, but not at reading your mind.”
   - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9





reply via email to

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