이맥스(Emacs) 텍스트 에디터

관련 항목

이맥스(emacs)에서 기본 시스템 인코딩 지정하기

문제

These default coding systems were tried to encode text
in the buffer ` *Format Temp 0*':
(emacs-mule-unix (819 . 45232) (1184 . 45232))
However, each of them encountered characters it couldn't encode:
emacs-mule-unix cannot encode these:  

Click on a character (or switch to this window by `C-x o'
and select the characters by RET) to jump to the place it appears,
where `C-u C-x =' will give information about it.

Select one of the safe coding systems listed below,
or cancel the writing with C-g and edit the buffer
to remove or modify the problematic characters,
or specify any other coding system (and risk losing
the problematic characters).

utf-8 gb18030 utf-7 utf-16 utf-16be-with-signature
utf-16le-with-signature utf-16be utf-16le utf-8-auto
utf-8-with-signature korean-cp949 utf-7-imap utf-8-emacs

해결법

http://stackoverflow.com/questions/2901541/which-coding-system-should-i-use-in-emacs

(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)

치환시 엔터 넣기

C-q C-j

참조


Who am I?