## Emacs and International Characters

Every now and then, I work on an application needs to read/write files that contain Unicode characters, even though everything I use is set to use UTF-8 encoding something gets messed up along the way. One of the first things I do is check the encoding Emacs uses on the buffer, to determine which one, Emacs or the application messed it up. Since I do this once in every 6 months or so, I tend to forget the commands. Following is a self reference of commands to mess with buffer encoding in Emacs.

To set which coding system to use during save/open,

C-x RET f (set-buffer-file-coding-system)


C-h C coding <RET>

(setq locale-coding-system 'utf-8)