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: kovvalsky
Subject: Re: Specify file encoding when storing a plain text or a source code
Date: Tue, 1 Feb 2011 02:09:48 -0800 (PST)

I am completely beginner in emacs and we have this question to answer (it's
odd yes) and i am not sure if I understand you answer, but thanks.
I think the answer to my question is:
C-x h                                              #select all text
C-x RET c <encoding> RET            #set encoding for next command
M-x sort-lines                                  #sort the text using the
specified encoding



Deniz Dogan-3 wrote:
> 
> 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
> 

-- 
View this message in context: 
http://old.nabble.com/Specify-file-encoding-when-storing-a-plain-text-or-a-source-code-tp30811936p30814900.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




reply via email to

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