If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL ordering problem with utf8

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-08, 14:46
elmu elmu is offline
Registered User
 
Join Date: Aug 2006
Posts: 5
MySQL ordering problem with utf8

Hello,

I have a MySQL table with CHARSET=utf8 COLLATE=utf8_unicode_ci
My problem is that if I want to order by name for example then the list is not really correct. The words with only english characters are ordered fine, but if there are any non english character like ้ő๓, then they will be placed in a wrong position.

Any idea how to solve it?
Reply With Quote
  #2 (permalink)  
Old 06-30-08, 06:20
elmu elmu is offline
Registered User
 
Join Date: Aug 2006
Posts: 5
Some more details:

MySQL version is 5.0.x (depends on server )
OS: XP Pro, XP Home, Vista Home Premium, Vista Ultimate, Linux (depends on server). The problem exists everywhere.

Wrong order: Let's say we have a column "word" with 2 records: apple and ๖nt. The correct order is:
1. apple
2. ๖nt

But the "order by word asc" results:
1. ๖nt
2. apple
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On