[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cyrillic, utf-8 and windows
From: |
Sam Steingold |
Subject: |
Re: Cyrillic, utf-8 and windows |
Date: |
Tue, 09 Dec 2003 13:25:00 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) |
> * Sam Steingold <address@hidden> [2003-12-08 13:39:32 -0500]:
>
> GNU Emacs 21.3.50.1 (i386-msvc-nt5.0.2195)
> of 2003-11-20 on WINSTEINGOLDLAP
> --with-msvc (12.00)
>
> I can open in Emacs a utf-8 file with Cyrillic characters in it and it
> is displayed just fine - with correct glyphs &c.
> I set `default-input-method' to "cyrillic-yawerty" in .emacs,
> so when I try C-\ `toggle-input-method', I get 2 "character outline
> boxes" in the modeline and when I type, I see these "character outline
> boxes" in the buffer instead of the characters I just typed.
> When I save the buffer, kill it, and re-visit the file,
> I see what I just typed displayed correctly as Cyrillic!
> So, why does Emacs display the characters that I type as boxes
> (rectangles) but shows them correctly when loaded from a file on disk?
>
> I use:
>
> (setq default-input-method "cyrillic-yawerty")
> (prefer-coding-system 'utf-8)
> (when (fboundp 'utf-translate-cjk-mode) (utf-translate-cjk-mode 1))
when I type using cyrillic-yawerty, I get this:
character: а (07120, 3664, 0xe50, U+0430)
charset: cyrillic-iso8859-5
(Right-Hand Part of Latin/Cyrillic Alphabet (ISO/IEC 8859-5):
ISO-IR-144.)
code point: 80
syntax: w which means: word
category: y:Cyrillic
buffer code: 0x8C 0xD0
file code: 0xD0 0xB0 (encoded by coding system mule-utf-8-unix)
display: no font available
when I save the file, kill the buffer and visit the file again, that
character becomes
character: а (01212120, 332880, 0x51450, U+0430)
charset: mule-unicode-0100-24ff
(Unicode characters of the range U+0100..U+24FF.)
code point: 40 80
syntax: w which means: word
category: y:Cyrillic
buffer code: 0x9C 0xF4 0xA8 0xD0
file code: 0xD0 0xB0 (encoded by coding system mule-utf-8-unix)
display: by this font (glyph code)
-outline-Courier New-normal-r-normal-normal-13-97-96-96-c-80-iso10646-1
(0x430)
So, how do I tell cyrillic-yawerty to insert UTF-8?!
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
When you talk to God, it's prayer; when He talks to you, it's schizophrenia.