select * from table where key='çmyk'
when i run this query on table that have row which’s value is ‘cmyk’.
the query returns me that row. but values are different. when i search ‘çmyk’ it returns ‘cmyk’.
so what can i do?
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_unicode_ci
table collation: latin1_swedish_ci
The problem is that the
latin1_swedish_cicollation is not only case insensitive, it is umlaut insensitive as well, so the following applies:switching to a case sensitive collation in the WHERE clause should work, like so:
with the caveat that this is not good for performance.
mySQL Reference: 9.1.7.8. Examples of the Effect of Collation