From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: steve.tolkin@fmr.com (Steven Tolkin) Newsgroups: gmane.emacs.help Subject: How to find "bad" characters that cannot be saved using some encoding Date: 7 Nov 2004 16:00:19 -0800 Organization: http://groups.google.com Message-ID: <107e75b8.0411071600.76156474@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1099872178 29225 80.91.229.6 (8 Nov 2004 00:02:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Nov 2004 00:02:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 08 01:02:47 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CQwze-0001D0-00 for ; Mon, 08 Nov 2004 01:02:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQx7y-0003S5-8X for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Nov 2004 19:11:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.glorb.com!postnews.google.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 24.60.167.223 Original-X-Trace: posting.google.com 1099872019 26317 127.0.0.1 (8 Nov 2004 00:00:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 8 Nov 2004 00:00:19 +0000 (UTC) Original-Xref: shelby.stanford.edu comp.emacs:86973 gnu.emacs.help:126420 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:21809 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21809 Sometimes emacs tells me it cannot save a buffer because there are characters that cannot use the current coding system. How can I have it show me the offending character or characters? Suppose I chose raw-text and save the buffer. Then later when I read the file, it seems to have all ordinary characters, and after a trivial change such as adding a blank it now can be saved. Was some "bad" character replaced with a different character? I am using emacs version 21.2.1 on Windows XP. According to this old message fixing this was on some TODO list. Was this ever done? From: Eli Zaretskii Subject: Re: what file was it that caused a coding system warning Newsgroups: gnu.emacs.bug Date: 2002-01-17 03:33:12 PST > Of course it could > also zero in on the problem spot in the file that caused the warning, > so we would know what to fix. Alas, it cannot do that, currently: it simply doesn't know where's that spot. A feature to add the (non-trivial) code that will find that spot is on our TODO list. Thanks, Steve -- Steven Tolkin Steve . Tolkin at Fmr . Com 617-563-0516 Fidelity Investments 82 Devonshire St. V13C Boston MA 02109 There is nothing so practical as a good theory. Comments are by me, not Fidelity Investments, its subsidiaries or affiliates.