From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: Re: those funny non-ASCII characters Date: Thu, 31 May 2012 22:43:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <731567ba-000c-4643-9eff-0237129b90c7@oe8g2000pbb.googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338529521 20865 80.91.229.3 (1 Jun 2012 05:45:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Jun 2012 05:45:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 01 07:45:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SaKfk-0006BF-60 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jun 2012 07:45:16 +0200 Original-Received: from localhost ([::1]:52134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaKfj-0000hP-QR for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jun 2012 01:45:15 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!oe8g2000pbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 116.74.133.115 Original-X-Trace: posting.google.com 1338529387 32415 127.0.0.1 (1 Jun 2012 05:43:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 1 Jun 2012 05:43:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: oe8g2000pbb.googlegroups.com; posting-host=116.74.133.115; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:192664 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85070 Archived-At: On Jun 1, 9:23=A0am, Jason Rumney wrote: > On Thursday, 31 May 2012 01:15:11 UTC+8, Buchs, Kevin =A0wrote: > > Xah suggested I embrace Unicode. So I could use (prefer-coding-system > > 'utf-8) or the file variable: -*- coding: utf-8 -*-. Are there drawback= s > > to the former? What about opening an ASCII coded file? Can emacs > > properly detect it or does it come up as UTF-8? > > ASCII is a subset of UTF-8, so the problem you are imagining does not exi= st. This does not exactly work that way on windows. eg recently saw a description of how notepad put a BOM mark in a haskell-script which made the haskell scripts unrunnable