From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer Stengele Newsgroups: gmane.emacs.help Subject: Re: problems displaying german "umlaute" Date: Wed, 08 Jul 2009 19:11:04 +0200 Message-ID: <4A54D328.1020101@diplan.de> References: <4A4E483E.201@online.de> <31103f42-c3a9-433e-b604-2023c4398b95@b9g2000yqm.googlegroups.com> <4A4E5AB6.4050905@online.de> <257c34b1-8525-4783-86ce-0ed16a750ea7@a7g2000yqk.googlegroups.com> <34aafbc1-65a7-4cdb-a784-e81950c84e8a@d32g2000yqh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247073122 26458 80.91.229.12 (8 Jul 2009 17:12:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 17:12:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: TomSW Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 19:11:55 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 1MOagT-0006ak-Oq for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 19:11:54 +0200 Original-Received: from localhost ([127.0.0.1]:36702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOagS-0002rX-Ug for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 13:11:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOag0-0002qZ-HN for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 13:11:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOafv-0002qL-3C for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 13:11:23 -0400 Original-Received: from [199.232.76.173] (port=59750 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOafu-0002qI-Ux for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 13:11:19 -0400 Original-Received: from ns.diplan.de ([212.34.188.4]:37207 helo=mail.diplan.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOafu-000896-D4 for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 13:11:18 -0400 Original-Received: from [192.168.99.164] (unknown [192.168.99.164]) by mail.diplan.de (Postfix outbound) with ESMTP id ABC162F4625; Wed, 8 Jul 2009 19:11:05 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.17) Gecko/20080914 Lightning/0.8 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 Original-Newsgroups: gmane.emacs.help In-Reply-To: <34aafbc1-65a7-4cdb-a784-e81950c84e8a@d32g2000yqh.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:65853 Archived-At: TomSW schrieb: > On Jul 4, 11:14 pm, Rainer Stengele wrote: >=20 >> OK, opening the file after "emacs -Q" gives me: >> >> [Ps 90:12 Lehre uns bedenken, da\303\237 wir sterben m\303\274ssen, a= uf >> da\303\237 wir klug werden.] >> >> After evaluating (set-buffer-multibyte t) and reloading the buffer the >> result is wrong still... >=20 > It looks as if Emacs is reading utf-8 files as ascii, I don't know > why. After loading the file, try the command describe-coding-system, > just to confirm what coding system is being used. >=20 > To fix the problem you can change file-coding-system-alist, or use set- > default-coding-systems, somewhere in your .emacs. Just seems odd that > it is necessary. > regards, > Tom >=20 >=20 Oh dear, I am totally desperate. The bad characters are coming up all the times and getting more and more. No matter which coding system I use they reappear. What am I doing wrong? Can anybody help me setting up a correct coding system framework to work = with german umlauts? I tried to write a function to replace the characters but it does not wor= k, something like: (defun replace-misthaufen () "ersetzt im gesamten buffer: =C3=BC =3D> =C3=83=C2=BC =C3=9F =3D> =C3=83=C2=9F =C3=A4 =3D> =C3=83=C2=A4 =C3=B6 =3D> =C3=83=C2=B6" (interactive (beginning-of-buffer) (while (search-forward "=C3=BC" nil t) (replace-match "=C3=83=C2=BC" nil t)) (beginning-of-buffer) (while (search-forward "=C3=9F" nil t) (replace-match "=C3=83=C2=9F" nil t)) (beginning-of-buffer) (while (search-forward "=C3=A4" nil t) (replace-match "=C3=83=C2=A4" nil t)) (beginning-of-buffer) (while (search-forward "=C3=B6" nil t) (replace-match "=C3=83=C2=B6" nil t)) )) Looks crazy I know, but the reason is that even in this buffer everything= comes up wrong so I do not know how to continue. Thanks for any help, - rainer