|
From: | Peter Dyballa |
Subject: | Re: automatically replacing, e.g., <DF>, by umlaut? |
Date: | Tue, 21 Apr 2009 21:29:55 +0200 |
Am 21.04.2009 um 10:45 schrieb Ulrich Scholz:
Hi, I often have the problem that when I copy and past some text from the console into Emacs, the umlauts are shown as sequence of characters <DF> or \317 (number may be wrong).
What about switching all utilities and the windowing system to the same encoding? With GNU Emacs 22.x or 23 UTF-8 is the right choice. LANG or LC_ALL or LC_CTYPE would be something like de_DE.UTF-8 and the fonts are best ISO 10646 encoded ...
The actual cause could be that the X server tells GNU Emacs that the X selection is of type UTF-8 – and it's not! It's probably ISO 8859-1, so ß is encoded as one single byte with value 0xDF or \317. And since GNU Emacs gets told "the data is rather binary UTF-8" it does not need to convert it and inserts each byte unchanged.
The easier solution: make your console UTF-8 encoded. -- Mit friedvollen Grüßen PeteIrgendwer sollte den Kugelschreiber mit einem Kleiderbügel kreuzen, dass die Kulis sich vermehren, statt stets nur zu verschwinden!
[Prev in Thread] | Current Thread | [Next in Thread] |