From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: umlaute not recognized Date: Mon, 20 Dec 2010 07:57:05 -0500 Message-ID: <4D0F52A1.4000600@mousecar.com> References: <4D0E5477.9030608@gmx.net> <1a59bab4-472c-493f-a531-ef2c87c8583a@g26g2000vbi.googlegroups.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1292849891 16125 80.91.229.12 (20 Dec 2010 12:58:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 12:58:11 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 20 13:58:07 2010 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.69) (envelope-from ) id 1PUfJW-0003Ig-71 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 13:58:06 +0100 Original-Received: from localhost ([127.0.0.1]:60956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUfJV-0003Qc-9O for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 07:58:05 -0500 Original-Received: from [140.186.70.92] (port=58448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUfIk-0003FW-To for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 07:57:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUfIc-0003QT-VC for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 07:57:18 -0500 Original-Received: from mout.perfora.net ([74.208.4.195]:54386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUfIc-0003Ps-Pq for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 07:57:10 -0500 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus2) with ESMTP (Nemesis) id 0LuwnZ-1QU5dj2hcH-00zelL; Mon, 20 Dec 2010 07:57:08 -0500 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) In-Reply-To: <1a59bab4-472c-493f-a531-ef2c87c8583a@g26g2000vbi.googlegroups.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:O59DbWJrN9uiK9LH2VXpmK3uFAVBor+rjiHvndOKXtu zlSNOSa2WxCGBEG0zc3iv6b5hUowsrZ1olZx+1lSsRc/bTAqJQ is/ZpgNIV7leGnAhNwUy6R5wj7vPuzqSe5Iq30l/EofJ8O5R17 5Ep26K+MuUIx1wdb0hMaeIl4J32D01XJk8Q7Ea02Wozz2evfU3 scikf9uMwtPvWdWHVIJQjR2/pcKZ1G+6SDaJq7cLl4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:77693 Archived-At: On 12/20/2010 06:05 AM LanX wrote: > Hi Peter > > I have a similar problem, which doesn't disappear with > > (prefer-coding-system 'utf-8) > > and my env is set > :~$ env|grep LANG > LANG=de_DE.UTF-8 > GDM_LANG=de_DE.UTF-8 > > I have an org file where umlauts are occasionally set to something > like ä or \ddd (d=digit). > > Exporting to latex fails for obscure reasons. > > describe-coding-system says > ---------------- > Coding system for saving this buffer: > 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) > > Default coding system (for new files): > 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) > ---------------- > > And the codings system is the same for new files, despite all utf8 > settings. > > Any ideas? > > Cheers > Rolf > > On 19 Dez., 20:51, Peter Dyballa wrote: >> Am 19.12.2010 um 19:52 schrieb Tim Häring: >> >>> If I write a text-file in e.g. gedit like the following: >>> Hällöle >>> and open it with emacs I get the following: >>> hällöle >> Make GNU Emacs open the file in UTF-8! GNU Emacs will do that >> automatically when it finds in the environment LANG or LC_CTYPE set to >> some *.UTF-8 value. Another option is to put into your init file: >> >> (prefer-coding-system 'utf-8) What works for me: Insert this into the top of the file: Do "C-x C-v RETURN" to reload the file. I then see a 'U' in the second column of the status line. Sometimes there are characters in the file which are not UTF-8 and so which don't display properly; they appear as '\366' or suchlike... a backslash and a three-digit number. Attempting to save the file, I'm queried about them. But I do a search-and-replace on these and when they're all removed, the file is properly saved in UTF-8. hth, ken -- "The owners of this country know the truth: It's called the American dream because you have to be asleep to believe it." --George Carlin