Herr
Herr

Reputation: 2735

MySQL Query like not returning correct results

i've a MySQL query that should return some rows that have the letters Ö or Ü in it but it actually does not.

The query code is this:

$this->db->like('title', $text );

It's PHP CodeIgniter active query.

Lets assume we have 2 rows. 1. Büm 2. Bom

if i search for Bü, the 1. row has to be returned but it does not. When i search for Bo the second row gets returned successfully and when i search for B both rows are returned.

How could i fix this? What may be the underlieng cause?

Thanks for reading.

Upvotes: 0

Views: 276

Answers (1)

buckbova
buckbova

Reputation: 1223

You may need to specify a different collation in mysql. http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html

Upvotes: 1

Related Questions