Saturday, March 21, 2009

Beautiful Emacs: Deleting Weird-Characters

To remove weird UTF characters such as \335\277\210 in emacs windows, add the following sentences in ".emacs".

(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

No comments:

Post a Comment