[Top][All Lists]

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

Re: Problem with UTF-8

From: Oliver Scholz
Subject: Re: Problem with UTF-8
Date: Wed, 03 Dec 2003 14:33:23 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/22.0.0 (windows-nt)

Konstantinos Efstathiou <address@hidden> writes:

> When writing the file:
>    character: .[alpha] (05541, 2913, 0xb61, U+03B1).-A
>      charset: greek-iso8859-7
>      display: by this font (glyph code)
>       -etl-fixed-medium-r-normal--14-140-75-75-m-140-iso8859-7 (0xE1)
> After saving and reopening the file:
>    character: .[square] (01211661, 332721, 0x513b1, U+03B1).-A
>      charset: mule-unicode-0100-24ff
>      display: no font avairable

I see. It is a font problem. You need to create a fontset in order to
solve it. Look for an appropriate ISO 10646-1 font and set Emacs up to
use it for the charset mule-unicode-0100-24ff. For example this should
work on GNU/Linux:

(create-fontset-from-fontset-spec "\ 

(set-face-font 'default "fontset-konstantinos")

Maybe there is a ISO 10646 variant of the ETL font that you are using?

Some people prefer to do it via X-ressources, but I don't use that and
I am too lazy to look the syntax up in the manual.

What is happening? Emacs internal encoding (emacs-mule) is divided
into several so-called "charsets". Every character in a buffer belongs
to a charset and some charsets contain the same (abstract)
characters. The Greek input method you use obviously inserts chars
from `greek-iso8859-7'. (Some or all (?) of the input methods for
classical Greek, for example, use `mule-unicode-0100-24ff'.) Font
resolving and similar things depend on those charsets. When you save
the file as UTF-8, then Emacs knows how to generate the appropriate
UTF-8 octets for the charset `greek-iso8859-7'. But when you visit it
again, then Emacs does not decode those UTF-8 octets to characters
belonging to `greek-iso8859-7', but to chars from
`mule-unicode-0100-24ff'. This is actually a good thing. It's just a
font issue that you don't see the right glyphs for those characters.

13 Frimaire an 212 de la Révolution
Liberté, Egalité, Fraternité!

reply via email to

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