From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: how to find encoding violations in Emacs buffer? Date: Tue, 12 Dec 2006 21:39:53 +0100 Message-ID: <457F1399.3040008@student.lu.se> References: <1165947493.201071.294760@l12g2000cwl.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165956021 10095 80.91.229.10 (12 Dec 2006 20:40:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 20:40:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 12 21:40:20 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 1GuEQE-0004bB-Sg for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 21:40:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuEQE-0002br-Cl for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 15:40:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuEPv-0002Zo-DL for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 15:39:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuEPs-0002Xh-Mz for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 15:39:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuEPs-0002XN-AY for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 15:39:56 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GuEPr-0000gS-RF for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 15:39:56 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64815 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GuEPp-0002Kc-5H; Tue, 12 Dec 2006 21:39:54 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: riccardo.murri@gmail.com In-Reply-To: <1165947493.201071.294760@l12g2000cwl.googlegroups.com> X-Antivirus: avast! (VPS 0657-1, 2006-12-12), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GuEPp-0002Kc-5H. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GuEPp-0002Kc-5H bfa690ebd48bca8691e170dc6ef24680 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:39480 Archived-At: riccardo.murri@gmail.com wrote: > 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 > I think someone said there was, but I have never seen it though I have had these problem quite often. Can't remember the details now. Which platform are you on? I am using MS Windows (2000 or XP).