Re: Locales, Mutt, OpenOffice, Emacs
On November 2, 2002 at 2:01PM +0100,
Vincent Lefevre <vincent@vinc17.org> wrote:
> But even when the terminal coding system is correctly set, Emacs
> still uses the ISO-8859-1 encoding for a UTF-8 input, e.g. I get
> é instead of é.
What is `a UTF-8 input'?
In Emacs on the ISO-8859-1/UTF-8 terminal, I can input é by
C-\ ' e C-\ with the following configuration.
-- ~/.emacs --
(set-language-environment "Latin-1")
(setq default-input-method "latin-1-prefix")
(let (locale)
(let ((vars '("LC_ALL" "LC_CTYPE" "LANG")))
(while (and vars (not (setq locale (getenv (car vars)))))
(setq vars (cdr vars))))
(cond
((and (stringp locale)
(string-match "UTF-8\\>" locale))
(set-terminal-coding-system 'utf-8))))
----
--
Tatsuya Kinoshita
Reply to: