Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-2006, 08:15 PM
bzi999@gmail.com
 
Posts: n/a
Default Mysql, PHP and UTF-8

Hi!

I've created a mysql database (v4.1.9) with the default charset utf8
and I'm doing some web pages with PHP (v4.3.2) also using UTF-8.

Database insertion works great, even when using strange characters but
search doesn't work always, for instance:
- a search for "não" or "NãO" gives 3 results
- "nao", "nÃo" and "NÃO" gives no results

Seems like the search is not case-insensitive (or accent-insensitive
for that matter) when using accented characters (or any greater than
127).

I've double checked the mysql table settings, did a "ALTER TABLE
mytablename DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci" just to
make sure and nothing works.

Anyone got ideas on how to solve this problem? Thanks in advance!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:01 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.