info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thanks, but new problem: utf-8 on a virtual text console


From: TeXitoi
Subject: Re: thanks, but new problem: utf-8 on a virtual text console
Date: 06 Apr 2005 22:19:20 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Peter Petersen <ppetersen@despammed.com> writes:

> With my utf-8 settings for using gnus with gnome-terminal, I get a
> complete mess when running emacs or gnus in a virtual text
> console. Somehow I can't get it to use utf-8. If someone knows about a
> way to change this or - alternatively - can tell me how to write an
> entry in .emacs to switch between coding systems if emacs is used on a
> text console in contrast to a terminal under X Window, please let me
> know.

I supose that your problem is about typing non-ascii charactere. I'd
the problem for typing, but not for display (display depend of your
local). To input, I have that in my .emacs :

(if (not (eq window-system 'x))
    (cond ((string-match ".UTF-8" (getenv "LANG"))
           (set-keyboard-coding-system 'utf-8))
          ((string-match "@euro" (getenv "LANG"))
           (set-keyboard-coding-system 'latin-0))
          (t (set-keyboard-coding-system 'latin-1))))

you can adapt that to yours needs.

-- 
Guillaume Pinot                          http://wwwetu.utc.fr/~pinotgui/

« L'amour, c'est comme le nombre Pi. Naturel, irrationnel et très
important. » -- Lisa Hoffman

() Campagne du ruban ascii -- contre les mails en html
/\ Contre les pièces jointes Microsoft


reply via email to

[Prev in Thread] Current Thread [Next in Thread]