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
_______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs