Windows 10, Emacs 25.
When I want to convert file from Windows-1251 to UTF-8 I use Notepad++.
Before convert:
convert:
after convert:
My question is: Is it possible this convert in Emacs?
One should use the command set-buffer-file-coding-system
(C-x RET f
), set the encoding, and then save the file.
Note that you may want to first revert-buffer-with-coding-system
(C-x RET r
) before performing the above step, if the file is opened with the wrong encoding in the first place.
The easiest way to do this is to:
utf-8-dos
)This should do the trick:
cp-1251
in
this case) with M-x + revert-buffer-wth-coding-system
. set-buffer-file-coding-system
to set encoding to utf-8.