From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: riccardo.murri@gmail.com Newsgroups: gmane.emacs.help Subject: how to find encoding violations in Emacs buffer? Date: 12 Dec 2006 10:18:13 -0800 Organization: http://groups.google.com Message-ID: <1165947493.201071.294760@l12g2000cwl.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1165948836 12804 80.91.229.10 (12 Dec 2006 18:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 18:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 12 19:40:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuCYJ-0002bH-Eu for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 19:40:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuCYI-0005uv-Uk for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 13:40:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l12g2000cwl.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 140.105.46.64 Original-X-Trace: posting.google.com 1165947498 4608 127.0.0.1 (12 Dec 2006 18:18:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 12 Dec 2006 18:18:18 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-2),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l12g2000cwl.googlegroups.com; posting-host=140.105.46.64; posting-account=Ko2Q_w0AAACs81J8LtxGb3EnI389882f Original-Xref: shelby.stanford.edu gnu.emacs.help:143872 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: news.gmane.org gmane.emacs.help:39475 Archived-At: Hello, from time to time, a buffer gets some spurious character in and Emacs refuses to save it in the correct encoding. So I am presented with the choice of other different encodings. However, in most of the cases, I know that the file *should* be UTF-8 encoded. So I would rather like to find out where the offending character is and correct it, instead of choosing a different encoding. Is there any function/package/elisp hack to find/highlight characters in a buffer that Emacs could not encode as UTF-8? Thank you for any hint! Riccardo P.S. Currently running 22.0.90