Forum Moderators: coopster
The method I can think out for now is to use the regular expresion like this :
SELECT nombre,apellidos FROM cliente WHERE nombre REGEXP 'Jos[eé]';
It works fine for the case of José. But not for all the cases, if the user entered "Maria" or "Agustin" for searching. Although my PHP program can put query command as "Mar[ií]a" or "Agust[ií]n" respectively without any problem. But the MySQL will only fetch the data records with "Maria" or "Agustin". Those data records with the values "María" or "Agustín" can not be fetched by from MySQL by using this command. It looks like only á; and é could work fine in this solution. I'm not sure is this a bug or not. Does anyone know what the problem is? Or anyone has other better solution for this problem? Please help me!
P.S. My PHP program don't have any problem on saving or displaying those Spanish letters in MySQL.