MySQL treats ÅÄÖ as AAO?!

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2010-04-09T11:55:44Z Indexed on 2010/04/09 12:03 UTC
Read the original article Hit count: 263

Filed under:
|

These two querys gives me the exact same result:

select * from topics where name='Harligt';
select * from topics where name='Härligt';

How is this possible? Seems like mysql translates åäö to aao when it searches. Is there some way to turn this off?

I use utf-8 encoding everywhere as far as i know. The same problem occurs both from terminal and from php.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about encoding