help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs in xterm and Cyrillic?


From: vedm
Subject: Re: Emacs in xterm and Cyrillic?
Date: 05 Apr 2005 21:29:38 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Peter Dyballa <address@hidden> writes:

> Am 04.04.2005 um 01:34 schrieb vedm:
> 
> > When I start emacs in xterm (emacs -nw) I can not read Cyrillic text: I
> > see only question marks.
> 
> First you should set in GNU Emacs a language environment: Cyrillic-ALT,
> Cyrillic-ISO, Cyrillic-KOI8, Ukrainian ... This should already prepare
> most things.
> 
> If this doesn't help yet, then there are environment variables in
> xterm's shell, LANG and LC_CTYPE. GNU Emacs 22 will reverse this
> sequence.
> 
> If this still is not sufficient you have in GNU Emacs a few variables
> and functions with 'coding-system' you can set, for example:
> 
>       (set-terminal-coding-system             'XXX)
>       (prefer-coding-system                   'XXX)
>       (setq default-buffer-file-coding-system 'XXX)
> 

Thanks for the help, it turned out that the following solves the
problem:

(set-terminal-coding-system 'iso-8859-5)

That's because in my .Xdefaults I have this:

==
Rxvt*font: -misc-fixed-medium-r-normal-*-20-200-*-75-c-100-iso8859-5
xterm*font: -misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso8859-5
==

(iso-8859-5 is the standard cyrillic encoding, although it is much less
used than the Microsoft non-standard cp1251 aka windows-1251)

-- 
vedm


reply via email to

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