How to convert between dos and unix file coding for files in Emacs?
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).