preg_rlike not matching characters like ò , í , è etc

167 Views Asked by At

Can you hep me to match special characters like ò , í , è with mysql preg_rlike

select first_name from authors where preg_rlike('/Jòse/i',authors.first_name);

It will not retrieve data even if the database has value.

We can handle this with LIKE but I have many like Jòse|Jose|James

Let me please know how can we handle this.

1

There are 1 best solutions below

0
Ha Dev On BEST ANSWER

Thanks for your comments

I got answer to this question either by making the table or just that field is UT8 encoded or using CONVERT(field_name USING utf8) in the query