I have a mysql table with hungarian words, so accents are expected. This column full of words must be a UNIQUE one, so I need a charset which treats e.g.: "a" and "á" different.
I read on forums, that my best choise for character collision is utf8_unicode_ci. So my create database command looks like this:
CREATE DATABASE db_name CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci;
After testing is with "mar" - "már" and (with a german word, more popular language) "straße" - "strasse", it still doesn't work. INSERTing gives unique warning, and SELECT with accent results without accent (and vise versa).
Everywhere I looked says it should work. What am I missing then?
Update
Somehow I managed to make this, but work only with command prompt. Php still thinks SELECT "a" = "á" is TRUE.