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

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

Re: recommended russian encoding


From: Bruce Ingalls
Subject: Re: recommended russian encoding
Date: Sat, 17 Jul 2004 14:57:38 GMT
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)

Stefan Monnier wrote:
However, when I tried opening the file in Emacs on Linux, the UTF-8
encoded Russian characters displayed as ... empty boxes.

So it seems that Emacs correctly detected the utf-8 encoding but just
can't find the chars in the unicode font.
You can check with C-u C-x = when point is on one of those empty boxes.
I get:
  character: а (01212120, 332880, 0x51450)
    charset: mule-unicode-0100-24ff
             (Unicode characters of the range U+0100..U+24FF.)
 code point: 40 80
     syntax: word
   category: y:Cyrillic
buffer code: 0x9C 0xF4 0xA8 0xD0
  file code: 0xD0 0xB0 (encoded by coding system mule-utf-8)
       font: -Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO10646-1

(the encoded char above might not have survived copy & pasting)

bogus glyphs indicate a problem with the encoding.  Did you visit the
file with `C-x RET c utf-8 RET C-x C-f'?
I think you got the above syntax wrong.

Care to tell us what was wrong?
I discovered that the better syntax, which worked for me, is:
        C-x C-m c utf-8 RET C-x C-f
-------------^
C-m is not the same as RET.

C-h h does display Russian "hello" properly.
Emacs also works fine in -nw mode in an xterm.

This seems to demonstrate that the font is available...

Probably that you have a font for the koi-8 characters but not for the
russian unicode characters (and your Emacs doesn't realize that they are
the same).

That's it. koi-8-r encoding worked. Is there some way to tell Emacs to map the Cyrillic fonts that it has, to UTF-8 encodings?

Now, I'm going through all this again with XEmacs.
The precompiled v21.4.13 cygwin (XEmacs, not Cygwin distro) binary seems not to have LEIM/MULE support compiled in. When I type 'C-x C-m c', the only completion choices are 'default' & 'raw-text'


reply via email to

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