From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Endless Story" Newsgroups: gmane.emacs.help Subject: Re: How to get rid of Microsoft dumb quotes, e.g. \222 for apostrophe? Date: 16 Feb 2007 09:00:12 -0800 Organization: http://groups.google.com Message-ID: <1171645209.481929.264210@t69g2000cwt.googlegroups.com> References: <1171628373.417583.61410@k78g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1171647670 3685 80.91.229.12 (16 Feb 2007 17:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2007 17:41:10 +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 Feb 16 18:41:04 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 1HI74x-0005B9-Tg for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Feb 2007 18:41:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HI74s-0007GB-6a for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Feb 2007 12:40:58 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t69g2000cwt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 162.84.222.82 Original-X-Trace: posting.google.com 1171645240 18135 127.0.0.1 (16 Feb 2007 17:00:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 16 Feb 2007 17:00:40 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t69g2000cwt.googlegroups.com; posting-host=162.84.222.82; posting-account=JP8pbg0AAADYDr61n41ZYs45c0xuivey Original-Xref: shelby.stanford.edu gnu.emacs.help:145656 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:41261 Archived-At: On Feb 16, 11:22 am, Stefan Monnier wrote: > An alternative solution to the one you request might be to open the file > using the `windows-1252' coding-system rather than `latin-1'. > > C-x RET c windows-1252 RET C-x C-f RET > > or if you have a recent Emacs, you can just revert the buffer with > a different coding system: > > C-x RET r windows-1252 RET This does nothing to address the situation I am talking about, where these bad characters need to be removed altogether so they will not foul up text files handed to LaTeX. Also Sebastian's suggestion of (standard-display-ascii ?\200 (vector (decode-char 'ucs #x253c))), etc., does nothing either. As far as I can see both of these approaches merely permit the "correct" display of \222 etc. inside Emacs. That's not my problem!