Re: Re: 0x9f54

From: Date: Thu, 12 Apr 2007 03:31:11 +0000
Subject: Re: Re: 0x9f54
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-252691@lists.php.net to get a copy of this message
On Wed, April 11, 2007 6:47 am, Man-wai Chang wrote: > how do you do string comparison in utf-8? say the user entered a > chinese > string the browser and you need to search for the string in the MySQL > table using PHP. *IF* the page that got the initial data was UTF-8 in its HTTP Headers and in the META tags, and mysql server is starting up with UTF-8, and php mysql client connnection is using UTF-8, and the page getting the search key is also UTf-8, then it should "just work" I think... That said... If you're still having problems with this one broken character in a specific charset, you're on the wrong list... It's possible that you need WHERE binary field = '$input' MySQL has a "binary" keyword for binary comparison. But it may have some OTHER keyword for UTf-8 comparison... I dunno. Ask a MySQL list. There's no actual PHP in your question... I'll stop typing now. And stop taking cold medicine too. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#252691) next »