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

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

Re: Specify file encoding when storing a plain text or a source code


From: Deniz Dogan
Subject: Re: Specify file encoding when storing a plain text or a source code
Date: Tue, 1 Feb 2011 05:37:59 +0100

2011/2/1 kovvalsky <fibo.kowalsky@gmail.com>:
>
> How do you specify file encoding when storing a plain text or a source code
> in emacs?
> -
> thank you in advance.
> --
> View this message in context: 
> http://old.nabble.com/Specify-file-encoding-when-storing-a-plain-text-or-a-source-code-tp30811936p30811936.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
>

You can use "C-x RET f" (set-buffer-file-coding-system).

If CODING-SYSTEM leaves the text conversion unspecified, or if it leaves
the end-of-line conversion unspecified, FORCE controls what to do.
If FORCE is nil, get the unspecified aspect (or aspects) from the buffer's
previous `buffer-file-coding-system' value (if it is specified there).
Otherwise, leave it unspecified.

This marks the buffer modified so that the succeeding C-t C-s
surely saves the buffer with CODING-SYSTEM.  From a program, if you
don't want to mark the buffer modified, specify t for NOMODIFY.
If you know exactly what coding system you want to use,
just set the variable `buffer-file-coding-system' directly.

-- 
Deniz Dogan



reply via email to

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