From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: how to scan file for non-ascii chars (eg cut-n-paste from ms-word) Date: Sun, 09 Jan 2011 19:30:29 +0200 Message-ID: <83lj2uj87e.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1294594288 17022 80.91.229.12 (9 Jan 2011 17:31:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 17:31:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 09 18:31:23 2011 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.69) (envelope-from ) id 1Pbz6x-00059V-FQ for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jan 2011 18:31:23 +0100 Original-Received: from localhost ([127.0.0.1]:38068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pbz6w-0003Ws-Kl for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jan 2011 12:31:22 -0500 Original-Received: from [140.186.70.92] (port=47637 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pbz6M-0003VM-8N for help-gnu-emacs@gnu.org; Sun, 09 Jan 2011 12:30:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pbz6L-0008DH-0g for help-gnu-emacs@gnu.org; Sun, 09 Jan 2011 12:30:45 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:49038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pbz6K-0008D3-OD for help-gnu-emacs@gnu.org; Sun, 09 Jan 2011 12:30:44 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LER00A00N54EN00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sun, 09 Jan 2011 19:30:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.131.253]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LER00A0INAS2RA0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sun, 09 Jan 2011 19:30:29 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:78344 Archived-At: > Cc: help-gnu-emacs@gnu.org > From: Kenneth Goldman > Date: Sun, 9 Jan 2011 11:24:01 -0500 > > query-replace works once one has found the non-ASCII character. However, > it's often not obvious where the offending text is. When Emacs asks you to select a suitable encoding, it highlights these characters, so you can see where they are in the buffer. > Is there a way to search for anything that isn't ASCII? If the above is not enough, then try M-: (skip-chars-forward "\000-\377") RET