UTF8 : LIKE does not support character expansion ?
Hello,
I'm carrying out some tests on UTF8 collations with French language, on MySQL 5.0.22. I have a table named test with an utf8_unicode_ci column, named texte2 ; this column contains words like 'œuvre' (first character is the French 'melt digram oe' 0+0153) or 'groß' (last character is the German 'hard s' 0+00DF).
These queries work as expected, with œ mapping to oe and ß mapping to ss :
SELECT * FROM test WHERE texte2 = 'oeuvre' ;
SELECT * FROM test WHERE texte2 = 'gross' ;
But none of these queries returns any result :
SELECT * FROM test WHERE texte2 LIKE 'o%' ;
SELECT * FROM test WHERE texte2 LIKE '%s' ;
SELECT * FROM test WHERE texte2 LIKE 'oe%' ;
SELECT * FROM test WHERE texte2 LIKE '%ss' ;
SELECT * FROM test WHERE texte2 LIKE 'oeuvre' ;
SELECT * FROM test WHERE texte2 LIKE 'gross' ;
It this normal ? Does any ensuing version correct this ?
Thanks for any feedback !
Antoun
Subject
Views
Written By
Posted
UTF8 : LIKE does not support character expansion ?
11796
July 22, 2006 04:33AM
4218
July 22, 2006 06:05AM
3975
July 25, 2006 08:18AM
3940
July 26, 2006 01:43AM
3507
July 26, 2006 01:08PM
3439
July 26, 2006 11:29PM
3201
July 26, 2006 11:40PM
3169
July 26, 2006 11:51PM
3162
July 27, 2006 12:49AM
5199
July 27, 2006 01:21AM
2728
July 28, 2006 03:26AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.