From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harald Maier Newsgroups: gmane.emacs.help Subject: Re: emacs, umlauts, x-windows text mark and paste Date: Tue, 16 Dec 2003 10:40:41 +0100 Organization: 1&1 Internet AG Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Harald Maier NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1071568032 18579 80.91.224.253 (16 Dec 2003 09:47:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 09:47:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 10:47:09 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AWBnJ-0002UE-00 for ; Tue, 16 Dec 2003 10:47:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWCiU-0005sU-E7 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2003 05:46:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: p5088e588.dip0.t-ipconnect.de Original-X-Trace: online.de 1071567642 28983 80.136.229.136 (16 Dec 2003 09:40:42 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Tue, 16 Dec 2003 09:40:42 +0000 (UTC) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:nZ1vEgO9QwG1HahAzzaY4IJLiqo= Original-Xref: shelby.stanford.edu gnu.emacs.help:119366 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15305 josh buhl writes: > Hi, > > When I mark text in some other application that contains non-ascii > characters, e.g. in mozilla from a german webpage containing ö ä ü ß, > and paste it into an emacs buffer, than all the special characters get > shown as control sequences. Here's an example: > > I mark this text in mozilla: > > Soße wird in einer extra Soßenschüssel... > > Paste it into my Emacs buffer and get this: > > So\x{00DF}e wird in einer extra So\x{00DF}ensch\x{00FC}ssel... > > Questions: > > 1. how can I get this to work properly? Works fine for me out of the box. In mozilla the character coding is Western ISO8859-1 or ISO8859-15. > > 2. which command could I execute in emacs to get it to switch the > encoding of the current buffer, or whatever, so that the garbled > characters magically get converted to what they're supposed to be? C-x RET f (set-buffer-file-coding-system) > > 3. why is this like this? > > I've struggled with this problem _for years_ and never have found an > easy solution. I'm running emacs 21.3.1 on debian testing under gnome > 2.4 with english as the default language environment. I do know that > if I log out, and log in setting the session language to german, then > I can cut an paste german text into an emacs buffer with no > problem. However, it's not enough to set the LANG variable: if I open > a terminal, set LANG=german or de, and start emacs, it still doesn't > work. I am using as LANG environment de_DE or de_DE@euro. But it also works fine with "C". As far as I know "german" is not a valid entry. In emacs you can see the LANG value as follows: M-: (getenv "LANG") Harald