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

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

Re: EURO-Symbol in GNU Emacs


From: Peter Dyballa
Subject: Re: EURO-Symbol in GNU Emacs
Date: Fri, 16 Jun 2006 10:50:13 +0200


Am 15.06.2006 um 23:58 schrieb RjjdBae:

the file showed a little Sputnik, but Latin 9 showed a Euro.

This little Sputnik is

;   oct   dec   hex    UCS2    UTF-8
;=====================================
¤ = 244 = 164 = A4 = U+00A4 =    C2 A4 : CURRENCY SIGN

in most ISO Latin/ISO 8859 encodings. Only in ISO 8859-15/ISO Latin-9 or ISO Latin-0 and in ISO 8859-16/ISO Latin-10 we have the €:

;   oct   dec   hex    UCS2    UTF-8
;=====================================
€ = 244 = 164 = A4 = U+20AC = E2 82 AC : EURO SIGN

Other exceptions at this position (slot) are in:

ISO 8859-10: Ī = U+012A = C4 AA : LATIN CAPITAL LETTER I WITH MACRON (Latin 6) ISO 8859-14: Ċ = U+010A = C4 8A : LATIN CAPITAL LETTER C WITH DOT ABOVE (Latin 8) ISO 8859-5: Є = U+0404 = D0 84 : CYRILLIC CAPITAL LETTER UKRAINIAN IE ISO 8859-11: ค = U+0E04 = E0 B8 84 : THAI CHARACTER KHO KHWAI (thai- tis620)

You can see that the € is encoded 'in a far away' position in an Unicode encoded TrueType or OpenType font. So the font needs to be re- encoded to display the bit sequence (1, 2, or 3 bytes) in the file correctly. In UNIX I add as first line:

        ;;; -*- mode: Text; coding: iso-8859-16; -*-

Here ;;; is a Lisp comment. In a (La)TeX file it would be %%%. A different approach is with buffer-local variables at the end of the file (or buffer):

        %%% Local Variables:
        %%% mode: latex
        %%% coding: utf-8
        %%% TeX-master: t
        %%% End:

Both these ways a particular file encoding for use in GNU Emacs can be set successfully – which other editors won't understand! An editor that can switch encodings is a good thing.

--
Greetings

  Pete
              <\
                \__     O                       __O
                | O\   _\\/\-%                _`\<,
                '()-'-(_)--(_)               (_)/(_)







reply via email to

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