From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Buchs, Kevin" Newsgroups: gmane.emacs.help Subject: RE: those funny non-ASCII characters Date: Wed, 30 May 2012 12:15:11 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338398139 29513 80.91.229.3 (30 May 2012 17:15:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 May 2012 17:15:39 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 30 19:15:38 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 1SZmUj-00041f-Mj for geh-help-gnu-emacs@m.gmane.org; Wed, 30 May 2012 19:15:37 +0200 Original-Received: from localhost ([::1]:50112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZmUj-000677-CW for geh-help-gnu-emacs@m.gmane.org; Wed, 30 May 2012 13:15:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZmUQ-0005Zf-RD for help-gnu-emacs@gnu.org; Wed, 30 May 2012 13:15:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZmUO-000305-Ji for help-gnu-emacs@gnu.org; Wed, 30 May 2012 13:15:18 -0400 Original-Received: from mail10.mayo.edu ([129.176.212.47]:27877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZmUO-0002yu-F4 for help-gnu-emacs@gnu.org; Wed, 30 May 2012 13:15:16 -0400 X-IronPort-AV: E=Sophos;i="4.75,685,1330927200"; d="scan'208";a="157695948" Original-Received: from roedlp005a.mayo.edu (HELO mail10.mayo.edu) ([129.176.158.0]) by ironport10-dlp.mayo.edu with ESMTP; 30 May 2012 12:15:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAFlUxk+BsNQ1/2dsb2JhbABBA7QRgQeCGQUwClEBCCIGGAdXAQQTCIgDmAKYKIkEiw+CHQWCNmADiECMWIp7hHiCfg X-IronPort-AV: E=Sophos;i="4.75,685,1330927200"; d="scan'208";a="157695947" Original-Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 30 May 2012 12:15:13 -0500 Original-Received: from smtprelay.mayo.edu (smtprelay2.mayo.edu [192.168.48.11]) by mhro1a.mayo.edu with ESMTP id BT-MMP-2727376 for help-gnu-emacs@gnu.org; Wed, 30 May 2012 12:15:12 -0500 Original-Received: from MACE.mayo.edu (mace.mayo.edu [129.176.215.134]) by smtprelay.mayo.edu (8.12.11/8.12.11) with ESMTP id q4UHFCqI002474 for ; Wed, 30 May 2012 12:15:12 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: those funny non-ASCII characters thread-index: Ac06dD1ikmb6lBQoSzqKl3eF5AhR3wEEgB5g X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 129.176.212.47 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:85051 Archived-At: I am reposting some of my questions from last Friday (plus a few more), as I am still seeking assistance and there has been a lot of water over the dam on this list. Xah suggested I embrace Unicode. So I could use (prefer-coding-system 'utf-8) or the file variable: -*- coding: utf-8 -*-. Are there drawbacks to the former? What about opening an ASCII coded file? Can emacs properly detect it or does it come up as UTF-8? Or is there another way to go Unicode automatically? If I embrace Unicode, then should I make my Org-mode files no longer plain text? I assume that if my lisp library files are encoded utf-8, then I can paste that UTF-8 character from the web page into my call to (replace-string ...) in order to substitute the longer dash of Unicode U+2013 with an ASCII hyphen or double hyphen. But, how does that really work? If the lisp file is encoded utf-8, then how can I put an ASCII character in the replacement string? Or do I need to encode the hex value of the ASCII character(s)? Kevin Buchs | Senior Engineer | SPPDG | 507-538-5459 | buchs.kevin@mayo.edu Mayo Clinic | 200 First Street SW | Rochester, MN 55905 | http://www.mayo.edu/sppdg=20