From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.help Subject: Re: replace placeholders Date: Sun, 1 Mar 2009 09:55:22 -0800 Message-ID: <9B32B887-B1CA-4A49-A865-FB0E2EE8C771@digg.com> References: <873adxogmg.fsf@literaturlatenight.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235930161 26422 80.91.229.12 (1 Mar 2009 17:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2009 17:56:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: henry atting Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 18:57:18 2009 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 1Ldpud-0004ML-LL for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 18:57:15 +0100 Original-Received: from localhost ([127.0.0.1]:40817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdptI-0002Gk-Ie for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 12:55:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ldpsr-0002Cd-Sq for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:55:26 -0500 Original-Received: from [199.232.76.173] (port=47297 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ldpsr-0002BU-BU for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:55:25 -0500 Original-Received: from mail.digg.com ([64.191.203.36]:43939) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ldpsr-0006dz-0r for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:55:25 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 82CABA85068; Sun, 1 Mar 2009 09:55:23 -0800 (PST) X-Virus-Scanned: amavisd-new at X-Spam-Score: 1.048 Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t89iA8AMDn+n; Sun, 1 Mar 2009 09:55:23 -0800 (PST) Original-Received: from [192.168.1.100] (adsl-69-104-245-65.dsl.pltn13.pacbell.net [69.104.245.65]) by mail.digg.com (Postfix) with ESMTP id 0B715A8505D; Sun, 1 Mar 2009 09:55:23 -0800 (PST) In-Reply-To: <873adxogmg.fsf@literaturlatenight.de> X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:62495 Archived-At: On Feb 28, 2009, at 11:18 PM, henry atting wrote: > I have a file which was converted from dos to unix and from latin1 to > utf-8. Now it is speckeld with all these placeholders (\226) for non > presentable signs. It sounds like either your transcoding to UTF-8 is broken, or you're viewing the file with the wrong encoding. \226 (0xE2) is LATIN SMALL LETTER A WITH CIRCUMFLEX in ISO-8859-1, so if that was present in the input it should have been converted to 0xC3 0xA2. Alternately, it could be the start of a UTF-8 encoded point from the general punctuation block (e.g. curly quotes), which are all three bytes starting with 0xE2. This would point to your editor reading the file with the wrong encoding. Either way, I don't think simply removing the characters is the correct solution. - Ian