I know it sounds weird, but look at this:
mysql> select * from tbl_list_charset where word='aê';
+------+
| word |
+------+
| aª |
+------+
The data is coming from a file with utf-8 strings, which a python program reads and inserts into the table. As word column is defined unique, the insertion of aê fails.
The utf-8 representation of the strings in the file is:
aê = 61 C3 AA
aª = 61 C2 AA
My environment: linux, python 2.6.4, mysql 5.0.77 community edition
I am quite sure it is not a bug, but I am clueless of what I am doing wrong...
SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='[table-name]'should show you the collation on the table.show full columns from table;should do the trick. Most frontends should also provide some way of checking it, and there's always the generic query Archimedix posted.