How to convert between dos and unix file coding in Emacs?

How to convert between dos and unix file coding for files in Emacs?

asked May 12, 2014 by anonymous

1 Answer

 
Best answer

From Dos to Unix coding:

M-x set-buffer-file-coding-system RET undecided-unix

or

C-x RET f undecided-unix

Then save the file (C-x C-s).

From Unix to Dos

M-x set-buffer-file-coding-system RET undecided-dos

or

C-x RET f undecided-dos

Then save the file (C-x C-s).

answered May 12, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...