Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42866 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28220 invoked from network); 28 Jan 2009 15:12:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2009 15:12:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=antoniadis@noodles.gr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=george@noodles.gr; sender-id=unknown Received-SPF: error (pb1.pair.com: domain noodles.gr from 209.85.128.188 cause and error) X-PHP-List-Original-Sender: antoniadis@noodles.gr X-Host-Fingerprint: 209.85.128.188 fk-out-0910.google.com Received: from [209.85.128.188] ([209.85.128.188:58429] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/43-08436-FB570894 for ; Wed, 28 Jan 2009 10:11:59 -0500 Received: by fk-out-0910.google.com with SMTP id b27so3866656fka.7 for ; Wed, 28 Jan 2009 07:11:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.115.131 with SMTP id i3mr301782faq.95.1233155516197; Wed, 28 Jan 2009 07:11:56 -0800 (PST) In-Reply-To: <8d3051340901280652v38278272qbe2ee454f5c5dffc@mail.gmail.com> References: <8d3051340901280652v38278272qbe2ee454f5c5dffc@mail.gmail.com> Date: Wed, 28 Jan 2009 17:11:56 +0200 Message-ID: <641f88250901280711s3d26befdl32e449772165c4f7@mail.gmail.com> To: =?UTF-8?B?QWxww6FyIFTDtnLDtms=?= Cc: bipul@aphroecs.com, internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6d376467ee98704618c64fb Subject: Re: [PHP-DEV] search string problem with special characters in php 4.4.7 From: george@noodles.gr (George Antoniadis) --0016e6d376467ee98704618c64fb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jan 28, 2009 at 4:52 PM, Alp=C3=A1r T=C3=B6r=C3=B6k wrote: > 2009/1/28 Bipul Agarwal > > > Hi all, > > > > I have a search string which works just fine with php 4.4.9 and my loca= l > > host but some how its not working with php version 4.4.7. > > > > Search is for a Swedish name with special characters like - =C3=A5re - = I am > able > > to display these characters properly on the browser. the only problem i= s > > with searching keywords with special characters like above from the > > database. > > > > In php version 4.4.9 if we search for - =C3=A5re - we get around 26 rec= ords > > which > > is correct. but when we search the same in php version 4.4.7 (with same > > coding and same database) it retracts over 11,000 records - which is no= t > > correct. Database version for both servers is - MySQL client version: > > 5.0.51a > > > > > > I have a deadline tomorrow and wonder if you could please help me out? > the > > problem could be because of php versions or it has to be in my codes? > > > > Thanks in advance, > > Bipul > > > I think your problem is Db related. Try cross testing the databases with > the different PHP versions, to make sure where the problem is. > > > > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Alpar Torok > Most likely there is something different on your mysql server configuration= s and most probably that something is charset and/or collation related... Check what "set names" can do for you. G. --0016e6d376467ee98704618c64fb--