help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: switch between utf-8 and latin-1


From: Pascal J. Bourguignon
Subject: Re: switch between utf-8 and latin-1
Date: Sat, 18 Jul 2009 19:59:02 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

?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__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]