Jump to content

Mismatch errors in results


jcloud9

Recommended Posts

Hi Guys,

 

I have this problem where i've got a bunch of utf8 asian characters in a database. When i try to do a SELECT query on the table however, multiple results are returned when only one should be returned.

Here's an example.

Suppose there are two entries in the utf8 table "chars" of only 1 column "char"

the two entries are:

噂

時

(in asian characters they are: 噂 and 時)

 

If i do a query such as "SELECT * FROM `chars` WHERE `char`='時'

both results will be returned.

 

Can anyone tell me what i can do to fix this?

 

Thanks a lot!

Link to comment
Share on other sites

There is a section on character sets and collation in the manual here:

 

http://dev.mysql.com/doc/refman/5.1/en/charset.html

 

I can't you more than that, due to lack of mysql experience.. but I suspect that setting the appropriate collation order will help.

 

In particular look here:

 

http://dev.mysql.com/doc/refman/5.1/en/charset-collate.html

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.