unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Sébastien Kirche" <sebastien.kirche.no@spam.free.fr.invalid>
Subject: Re: change input coding
Date: Mon, 11 Apr 2005 14:34:22 +0200	[thread overview]
Message-ID: <m2k6n9sd9t.fsf@seki.fr> (raw)
In-Reply-To: mailman.1037.1113208992.2895.help-gnu-emacs@gnu.org

Le 11 Apr 2005, Peter Dyballa a dit :

> 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.)

What about changing the coding system just before opening the file ?
C-x RET c utf-16-be RET C-x C-f <the file>

It would  change the coding  system locally to  the opened file  rather than
changing it globally for the emacs session.

Then the  OP could just add  the first line as  you described in  1) for the
next time he will open it.

-- 
Sébastien Kirche

  parent reply	other threads:[~2005-04-11 12:34 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2k6n9sd9t.fsf@seki.fr \
    --to=sebastien.kirche.no@spam.free.fr.invalid \
    --cc=sebastien.kirche@free.fr \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).