$ cat "

Changing Character Encoding for File in Emacs

"

Character encoding is a pain... If you find yourself wanting to change the encoding of a file, here is how to do it in emacs:

C-x RET f utf-8 RET

When you then save the file, it is written with the specified encoding. If you can't remember the exact name of the encoding type:

C-x RET f TAB

This will give you a list of all available encodings in the help buffer.

Written by Erik Öjebo 2011-11-15 15:42

    Comments