all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tapani Tarvainen <gn20050310T190208@tt.oma.it.jyu.fi>
Subject: switching between locales (esp. iso-8859-1 and iso-8859-15)
Date: 10 Mar 2005 19:15:19 +0200	[thread overview]
Message-ID: <n6zmxbv2vs.fsf@ukri.tarvainen.info> (raw)


Is there any easy way to tell emacs to reinterpret (and display)
a buffer with a different encoding?

This sounds so basic but I can't figure out how to do it,
other than starting a new instance of emacs with different
locale.

In particular, I frequently have to deal with files in ISO-8859-1
and ISO-8859-15 codings, and while emacs is perfectly able to
display either correctly if it starts with the right foot, er,
with correct locale, I can't figure out how to make it change
its opinion of the encoding once it has opened the file.

E.g., if my locale is set to something with ISO-8859-1 encoding
and I open a file containing the euro symbol, it is displayed
incorrectly. That's fine, emacs had no way of knowing, but how
can I then tell emacs what the correct encoding is?

For now I simply exit emacs and start another with
LC_ALL=fi_FI@euro emacs
or something similar, but I hate doing that. It should
not be necessary to start a new emacs simply to edit
files with different encodings.

Please tell me I've missed something obvious.
It can't be this hard.

-- 
Tapani Tarvainen

             reply	other threads:[~2005-03-10 17:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10 17:15 Tapani Tarvainen [this message]
2005-03-10 18:24 ` switching between locales (esp. iso-8859-1 and iso-8859-15) Reiner Steib
2005-03-11  4:25   ` Tapani Tarvainen
2005-03-11 17:41     ` Kevin Rodgers
2005-03-15 15:11       ` Tapani Tarvainen
2005-03-15 17:05         ` Kevin Rodgers
2005-03-15 20:36     ` Stefan Monnier
2005-03-10 18:34 ` Kevin Rodgers

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=n6zmxbv2vs.fsf@ukri.tarvainen.info \
    --to=gn20050310t190208@tt.oma.it.jyu.fi \
    /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.