From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: switch between utf-8 and latin-1
Date: Sat, 18 Jul 2009 19:59:02 +0200 [thread overview]
Message-ID: <87vdlpdg9l.fsf@galatea.local> (raw)
In-Reply-To: 1Sn8m.2418$vm5.686@tornado.fastwebnet.it
?manu* <paolNOini@math.SPAMunifi.it> writes:
> . what method does emacs use to guess the encoding of a text file?
>
> . what is the command to tell emacs that the file in the buffer is
> utf-8 instead of latin-1?
M-x set-buffer-file-coding-system
(Usually bound to C-x RET f)
> . is it possible to insert some text in the file (in comments)
> to tell emacs which encoding to use?
Insert the coding File Variable:
Put: -*- coding:utf-8; -*-
on one of the first two lines,
or put:
Local Variables:
coding: utf-8
End:
in the last 512 bytes of the file.
--
__Pascal Bourguignon__
next prev parent reply other threads:[~2009-07-18 17:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-18 17:44 switch between utf-8 and latin-1 ?manu*
2009-07-18 17:59 ` Pascal J. Bourguignon [this message]
2009-07-18 19:06 ` switch between utf-8 and latin-1 (ARGH!!) ?manu*
2009-07-18 19:39 ` Anselm Helbig
2009-07-18 21:57 ` ?manu*
2009-07-18 23:54 ` Pascal J. Bourguignon
2009-07-19 6:32 ` ?manu*
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=87vdlpdg9l.fsf@galatea.local \
--to=pjb@informatimago.com \
--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.
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).