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

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

Re: replacing characters and whacky trans-buffer conversion


From: Peter Dyballa
Subject: Re: replacing characters and whacky trans-buffer conversion
Date: Fri, 9 Mar 2007 14:02:37 +0100


Am 09.03.2007 um 11:21 schrieb ken:

I've further discovered that it's not even a matter of cutting &
pasting/yanking. If I simply enter C-q 5 5 4 2 RETURN in *.el and again in *scratch*, this results in a different character in each buffer, the
*.el file getting it wrong (which is the kern of the problem).

Emacs Lisp files are usually kep in some ISO Latin. If you want to enter the GREEK SMALL LETTER BETA, U+03B2, i.e. ``β´´ (and not the German LATIN SMALL LETTER SHARP S, U+00DF, i.e. ``ß´´), you should add this as the first line of your ~/.emacs file (more variables possible):

        ;;; -*- mode: Emacs-Lisp; coding: utf-8-unix; -*-

First open the file as usual, then add the new line as first line (or enter them as local variables at the file's end), and finally save as utf-8.

--
Greetings

  Pete

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
     -Benjamin Franklin, Historical Review of Pennsylvania.






reply via email to

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