From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Charles Muller Newsgroups: gmane.emacs.help Subject: Re: How to make emacs auto-recognize utf-8 encoded files upon visiting Date: Tue, 24 Sep 2002 12:29:47 +0900 (JST) Sender: help-gnu-emacs-admin@gnu.org Message-ID: <20020924.122947.41626956.acmuller@gol.com> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1032838303 7099 127.0.0.1 (24 Sep 2002 03:31:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 03:31:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tgQI-0001qN-00 for ; Tue, 24 Sep 2002 05:31:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tgQG-0006rL-00; Mon, 23 Sep 2002 23:31:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17tgMS-0004sm-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 23:27:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17tgMN-0004rt-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 23:27:43 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tgMM-0004qp-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 23:27:39 -0400 Original-Received: from 203-216-50-107.dsl.gol.ne.jp ([203.216.50.107] helo=localhost) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 17tgMI-000893-00; Tue, 24 Sep 2002 12:27:34 +0900 Original-To: harder@myrealbox.com Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: Mew version 2.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) X-Abuse-Complaints: abuse@gol.com Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1769 Jesper Harder wrote: > > I'm trying to make my emacs (GNU Emacs 21.3.50.1 on linux) auto-recognize > > the right encoding when visiting files with utf-8 encoding. Sorry to mention TEI-Emacs again, but its superior ability to identify document encodings (especially Unicode) is one of things that I like best about it. http://www.tei-c.org/Software/tei-emacs.tar.gz >Does it work if you say `M-x prefer-coding-system utf-8' ? > If it doesn't, you can open a file using a specified coding system with: > `C-x RET c utf-8 RET C-x C-f' I had also tried these strategies, and they will allow you to edit a document as UTF-8, but AFAICT they don't solve the problem of having Emacs recognize these encodings automatically. Chuck --------------------------- Charles Muller Faculty of Humanities, Toyo Gakuen University Digital Dictionary of Buddhism and CJKV-English Dictionary [http://www.acmuller.net] Mobile Phone: 090-9310-1787