Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 65FF76327AC for ; Mon, 26 Apr 2010 09:41:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90442-05 for ; Mon, 26 Apr 2010 12:41:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id 7254A6325E7 for ; Mon, 26 Apr 2010 09:41:37 -0300 (ADT) Received: (qmail invoked by alias); 26 Apr 2010 12:41:34 -0000 Received: from p5481C10F.dip.t-dialin.net (EHLO [192.168.1.203]) [84.129.193.15] by mail.gmx.net (mp071) with SMTP; 26 Apr 2010 14:41:34 +0200 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX19bw7gmdUBbd1Hz7BNBObhftp5HDkpQzDPHBsyt/T X9u06Tlzqv4omx Message-ID: <4BD58A00.7030905@gmx.net> Date: Mon, 26 Apr 2010 14:41:36 +0200 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: silly sad CC: pgsql-sql@postgresql.org Subject: Re: [SPAM]-D] How to find broken UTF-8 characters ? References: <4BD4DA7B.3000603@gmx.net> <4BD5670A.803@bankir.ru> In-Reply-To: <4BD5670A.803@bankir.ru> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.56000000000000005 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.791 tagged_above=-10 required=5 tests=BAYES_50=0.8, FREEMAIL_FROM=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/92 X-Sequence-Number: 34019 Am 26.04.2010 12:12, schrieb silly sad: > On 04/26/10 04:12, Andreas wrote: > > looks like a complete offtopic Not anymore. The bad signs are in the DB now. I'd need some command that filters somehow for inconvertible (Unicode-->local charset) data. How can I find those Unicode characters that allready sneaked in? Actually there shouldn't be anything within the tables that NEED to be coded in Unicode. something like SELECT * FROM tab_1 WHERE field_x <> ConvertToLocal(field_x) might be a good start. >> How can I get rid of them? > iconv -c AFAIK iconv would translate on file system level but I would think that messed up a allready messed up Excel workmap even further. I'd be glad to handle csv, too. > BUT > u should not have those characters at all > if one is occured it most probably an error Sure, but those files hit me over a chain of people who consider it ok to convert data over numerus file formats, cut, edit, save as X, send per mail .... then hit me and I am the one to clean up. > AND > u should get rid of this error itself -- not of its consequences. Like quitting the job and grow flowers instead? I'll consider this. ;)