How to compare GBK-encoded strings?
Posted by: McEase Tu
Date: February 08, 2007 06:01AM

I have two database servers and each one has a table containing GBK-encoded strings. I wrote a C program to select the GBK-encoded data from both databases in sorted order and merge them together. I hope the result has the consistent sorted order as database. However, the simple strcmp doesn't work in this case since the GBK-collation is not simply comparing the string byte to byte.
So, If I want to get the correct result, what shall I do?
Thanks for any suggestions!

Options: ReplyQuote


Subject
Views
Written By
Posted
How to compare GBK-encoded strings?
3322
February 08, 2007 06:01AM
1646
February 08, 2007 09:30PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.