I have the following problem (using mysql 5.0.70): In one table I have a varchar field containing some kind of a number - "0303A342", "21534463", "35663CE3", etc. Collation is set to utf8_general_ci.
The problem shows up when a user of the system is trying to search for a record containing part of this number. SQL query looks like "...WHERE 'number' LIKE '%0303A%'" Now if the 'A' in the LIKE part is entered as a Latin A, the result contains only records with Latin A`s in them -- as it should. And when the A is Cyrillic, the results are again only those rows containing the Cyrillic A. There are many other letters like E, C, B, T and so on.
Now my question is, if there is a way to modify my sql query so it returns all rows matching the LIKE '%0303A%' part but for all kind of A`s in there? Or I should convert the user input before inserting/updating the database?