X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A086A32A49A for ; Tue, 5 Oct 2004 15:38:41 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27330-09 for ; Tue, 5 Oct 2004 14:38:28 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 610E832A3F4 for ; Tue, 5 Oct 2004 15:38:31 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i95EcRbx029441 for ; Tue, 5 Oct 2004 14:38:27 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i95EDphm020392 for pgsql-admin@postgresql.org; Tue, 5 Oct 2004 14:13:51 GMT From: dDave X-Newsgroups: comp.databases.postgresql.admin Subject: Touch search question Organization: Very Well Organized...NOT Message-ID: X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 21 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Tue, 05 Oct 2004 14:12:31 GMT To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/146 X-Sequence-Number: 15139 Hi, With a database loaded with North American city names, and clients in Québec, I have run into a tough problem for me. Taking input from a text box, I use a regex to clean out any non-essential characters like the set of (.- ) dot, dash, space etc... I then do an ilike comparison on the city names to find matches and report back the results. Problem is, a lot of cities have accented names like Montréal. And I find that while e and E are easily matched when using ILIKE, é is not É, making ILIKE a useless help... How would one better craft a search capable of finding entries when accented characters come into play? Should I look at creating a mapping of say é and É to just e? Any thoughts on the best way to SELECT matches in this case most appreciated!! Dave