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: How to get rid of Microsoft dumb quotes, e.g. \222 for apostrophe? Date: Tue, 20 Feb 2007 07:46:52 -0500 Message-ID: <45DAEDBC.8060904@speakeasy.net> References: <1171628373.417583.61410@k78g2000cwa.googlegroups.com> <87zm7e8e7j.fsf@wivenhoe.staff8.ul.ie> <45DAD149.8040200@speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1171975673 8428 80.91.229.12 (20 Feb 2007 12:47:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2007 12:47:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 20 13:47:47 2007 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.50) id 1HJUPH-0001m1-Fo for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Feb 2007 13:47:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJUPH-0007XA-3X for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Feb 2007 07:47:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJUP6-0007X3-6x for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 07:47:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJUP3-0007Wr-SC for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 07:47:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJUP3-0007Wo-LO for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 07:47:29 -0500 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HJUP3-0005ir-4p for help-gnu-emacs@gnu.org; Tue, 20 Feb 2007 07:47:29 -0500 Original-Received: (qmail 31721 invoked from network); 20 Feb 2007 12:47:27 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 20 Feb 2007 12:47:27 -0000 User-Agent: Thunderbird 1.5.0.9 (X11/20061206) In-Reply-To: X-Enigmail-Version: 0.94.1.1 OpenPGP: id=45796D04 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:41348 Archived-At: On 02/20/2007 05:56 AM somebody named Juanma Barranquero wrote: > On 2/20/07, ken wrote: > >> When I copy-n-paste "—" into an emacs buffer, one of the (several) bytes >> displayed is represented by '\224'. > > In a unibyte buffer, you mean? Does it appear correctly if you do > > M-: (set-buffer-multibyte t) > > ? > >> Have you tried to copy-n-paste "—" into an emacs buffer? >> What do you get? > > I get an em dash (U+2014). I'm starting Emacs in multibyte mode (the > default). > > Juanma The OP (original poster) on this thread was having to deal with MS characters appearing in a buffer with latin1 encoding. I was having the same issue. So the solution I was offering was intended for others (and myself) who wish to retain their files in latin1 encoding. To be sure, it's possible to save a buffer to file in another encoding. Indeed, I'm often prompting for this when saving a buffer to file. Since I prefer to retain files in a format which will be readable by the most people possible, I prefer to use latin1 encoding when- and wherever feasible. More importantly, the original questioner was asking for a way to convert MS characters for use in latin1.