On November 2, 2002 at 2:01PM +0100, Vincent Lefevre <[EMAIL PROTECTED]> 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]