I want to change my default encoding system from non defined to UTF-8 (I think that would be useful). Now I have seen many different UTF-8 coding systems:
mule-utf-8 mule-utf-8-dos
mule-utf-8-mac mule-utf-8-unix
prefer-utf-8 prefer-utf-8-dos
prefer-utf-8-mac prefer-utf-8-unix
utf-8 utf-8-auto
utf-8-auto-dos utf-8-auto-mac
utf-8-auto-unix utf-8-dos
utf-8-emacs utf-8-emacs-dos
utf-8-emacs-mac utf-8-emacs-unix
utf-8-hfs utf-8-hfs-dos
utf-8-hfs-mac utf-8-hfs-unix
utf-8-mac utf-8-unix
utf-8-with-signature utf-8-with-signature-dos
utf-8-with-signature-mac utf-8-with-signature-unix
I am using a Mac and I am further confused about these different hfs and mac coding systems.
At the moment I decided to use utf-8 as follow based on this answer:
(setq utf-translate-cjk-mode nil) ; disable CJK coding/encoding (Chinese/Japanese/Korean characters)
(set-language-environment 'utf-8)
;; (set-keyboard-coding-system 'utf-8-mac) ; For old Carbon emacs on OS X only
(setq locale-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(unless (eq system-type 'windows-nt)
(set-selection-coding-system 'utf-8))
(prefer-coding-system 'utf-8)
But I would like to understand some more what I am doing and why another utf-8 would be better as a default coding system?