From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: How to make emacs auto-recognize utf-8 encoded files upon visiting Date: Tue, 24 Sep 2002 01:35:48 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032824820 13092 127.0.0.1 (23 Sep 2002 23:47:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 23:47:00 +0000 (UTC) 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 17tcup-0003P2-00 for ; Tue, 24 Sep 2002 01:46:59 +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 17tcut-0002qp-00; Mon, 23 Sep 2002 19:47:03 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.162.153.118!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; 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:1765 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1765 Gerald Wildgruber writes: > 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. > > Can anyone give me a hint on how to make emacs find the correct coding > system (without setting it explicitly through file variables)? 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'