all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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