From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: automatically replacing, e.g., , by umlaut? Date: Tue, 21 Apr 2009 16:20:49 +0200 Organization: Freie Universitaet Berlin Message-ID: <87vdoym6ke.wl%anselm.helbig+news2009@googlemail.com> References: <0e7ffbde-8870-47d9-9445-5c9379b850fc@x5g2000yqk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1240328401 23124 80.91.229.12 (21 Apr 2009 15:40:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 15:40:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 21 17:41:21 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LwI5z-0004Wo-EL for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2009 17:41:15 +0200 Original-Received: from localhost ([127.0.0.1]:49662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwI4a-00068d-HV for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2009 11:39:48 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-X-Trace: news.uni-berlin.de yVJmzWvdrdHhBnjNtax3pwtbvwKoAf2N7qXhSLWDZf04AxKqKRyU3LP7e+ Cancel-Lock: sha1:3QiQ/uajVJb63fABBrvdxvOuieE= In-Reply-To: <0e7ffbde-8870-47d9-9445-5c9379b850fc@x5g2000yqk.googlegroups.com> Mail-Followup-To: anselm.helbig+news2009@googlemail.com User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) Original-Xref: news.stanford.edu gnu.emacs.help:168655 X-Mailman-Approved-At: Tue, 21 Apr 2009 11:36:45 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63924 Archived-At: Hi Ulrich! > 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 or \317 (number may be wrong). > > Is there some function to automatically replace these strings by the > corresponding umlaut? > > I know that the best solution would be to have the proper language > setting, font, character mapping, aso. But for years now, I failed to > get it right and there is no sign that this could change. Well, of course there is no built-in function to correct what shouldn't be broken in the first place. I've got (setq selection-coding-system 'utf-8) in my .emacs and everything seems to work fine - I'm on Ubuntu 8.04 with Emacs 23. Maybe you should start emacs with the -Q switch so that it doesn't load your customizations and start to find the culprit / experiment with different coding systems. Try C-x x, C-x X, and of course M-x customize-variable selection-coding-system until this works. A workaround might be to save the pasted text in a file and explicitly open this file with another coding system, C-x c is your friend here. What emacs version are you using? What OS are you on? It might be worthwhile to try out the current development version of emacs if you're not running Emacs 23 already. HTH, Kind regards, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com