From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: change input coding
Date: Mon, 11 Apr 2005 11:05:57 +0200 [thread overview]
Message-ID: <bc1222c91ad8457c7a4a2f4ba73a8330@Web.DE> (raw)
In-Reply-To: <d3d5lv$i8n$1@news2.rz.uni-karlsruhe.de>
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
next prev parent reply other threads:[~2005-04-11 9:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-11 6:32 change input coding Uwe Mayer
2005-04-11 9:05 ` Peter Dyballa [this message]
2005-04-11 11:37 ` Reiner Steib
[not found] ` <mailman.1037.1113208992.2895.help-gnu-emacs@gnu.org>
2005-04-11 12:34 ` Sébastien Kirche
2005-04-11 13:06 ` Peter Dyballa
2005-04-11 20:07 ` Eli Zaretskii
[not found] ` <mailman.1059.1113223178.2895.help-gnu-emacs@gnu.org>
2005-04-11 13:48 ` Sébastien Kirche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc1222c91ad8457c7a4a2f4ba73a8330@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.