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: B. T. Raven
Subject: Re: EURO-Symbol in GNU Emacs
Date: Thu, 15 Jun 2006 22:06:12 -0500

At least one representation of the Euro character in this (in 21.3 w32):
Char: $,1tL(B (01235114, 342604, 0x53a4c, file ...)

If you can see the glyph in emacs, then save the file as utf-8 and then
open or insert it in the "regular text-editor" as encoded text. (Probably
really a word processor.)
If you put something like the followning in your emacs, you will be able
to insert it easily:

(global-set-key "\C-cL" (lambda () (interactive)  (insert  ?£ )))
(global-set-key "\C-c$" (lambda () (interactive)  (insert  ?€ )))

Problems with exotic characters are usually due to either inappropriate
fonts or encodings. For instance, a-acute is represented differently in
emacs depending on whether it is taken from character set latin-1 or
latin-4. After saving the file as utf-8 and then re-opening it the
character should be unified to the same byte representation. The \200
should be selectable as a single character, so you can run query-replace
on all of them and substitute with € . I just pasted the Euro symbol from
this posting back into Emacs, where it started, and it appeared as \200.
Another problem is that MS uses a byte order mark in its Unicode files
whereas the rest of the world does not.
"juergen melzer" <juergenmelzer@yahoo.com> wrote in message
news:mailman.2909.1150378833.9609.help-gnu-emacs@gnu.org...
Hi there,

I am really stuck getting the EURO-Symbol shown and written in Emacs.

My Emacs-version is: GNU Emac 21.3.1 (i386-mingw-nt5.1.2600) on a MS
Windows XP (SP2) system (bad habbit, I know ;-) )

For displaying the symbol, I first tried using the ms-latn-ex.el package
by this commands .emacs:
a) (autoload 'ms-latn-ex "latin-extra") and
b) (set-face-font 'default '"latin-extra")

My second try was to use the following (also in .emacs):
(set-w32-system-coding-system 'iso-8859-15)

Both approaches ran without errors when emacs starts.
Even so, what I am shown in emacs is: \200 for the EURO-Symbol inserted by
an regular text-editor.

Secondly I tryd something to write the EURO-Symbol by following function:
(defun insert-euro ()
  "insert the euro sign"
  (interactive "*")
  (insert (string (make-char 'latin-iso8859-15 164))))

It actually shows me an EURO-Symbol, but a regular text-editor is showing
me the following: Ž¤

Please help me, I really spend hours an that problem and did'nt fix
anything.

Thanks so much in advance,


Juergen Melzer




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



reply via email to

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