Bug #41281 | Problem with special chars (ß, ü) and unique index | ||
---|---|---|---|
Submitted: | 6 Dec 2008 18:35 | Modified: | 9 Dec 2008 21:49 |
Reporter: | Tobias F | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.1.30 (32bit) | OS: | Windows (Vista x64) |
Assigned to: | CPU Architecture: | Any | |
Tags: | INDEX, sonderzeichen, special character, umlaut, unique |
[6 Dec 2008 18:35]
Tobias F
[7 Dec 2008 17:28]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of: show variables like 'collation%';
[7 Dec 2008 18:28]
Tobias F
With the 5.1.30 Version it shows mysql> show variables like 'collation%'; +----------------------+-----------------+ | Variable_name | Value | +----------------------+-----------------+ | collation_connection | utf8_general_ci | | collation_database | utf8_general_ci | | collation_server | utf8_general_ci | +----------------------+-----------------+ 3 rows in set (0.00 sec) With the 5.0.67 Version it shows the same, but the selection of 'mas' and the unique index do work. The selection of 'maß' over the commandline doesn't work with 5.0.67 either. But they do over phpmyadmin or the query browser. mysql> select * from testname where name='maß'; Empty set (0.00 sec) mysql> select * from testname; +----------+ | name | +----------+ | ma├ƒ | | mas | +----------+
[8 Dec 2008 9:03]
Susanne Ebrecht
Many thanks for writing a bug report. Unfortunately, this is not a bug. It is given by the Unicode Standard: ä=a ö=o ü=u ß=ss This is not familiar in Germany. But our utf8_unicode_ci is implemented like the Unicode Standard wants it. The same with utf8_general_ci. Recommended to use for utf8 is utf8_unicode_ci. Anyway, for German there are already tons of feature requests i.e.: Bug #38758 Our development already works on it. The only workaround here for you is: use latin1 and latin1_german2_ci
[9 Dec 2008 21:49]
Tobias F
What is the difference between the MySQL 5.0 and 5.1 implementation of unicode? I don't get why it worked with 5.0. Or was this a 'bug' in 5.0? Thanks for your help.