SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Sorting and Comparing hinese and japanee Characters.


Sorting and Comparing hinese and japanee Characters.

Author
Message
nata-1032882
nata-1032882
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 39
We are developing a J2EE application using Struts + Tomcat Server+ Session Beans + MS SQL 2005 Data Base and our application is expected to be a multi-lingual. We are able to accept and display chinese and japanese characters by using the proper charset in JSP - and other configurations

But, when we are doing a search, we are not able to sort and compare them. Our application has both simplified and traditional chinese characters and japanese characters. I have tried to sort them using collator class. Still, it is not meeting our requirement.

Please let me know how do we sort and compare them.
Is it necessary we need to use SQL Collation.

Please Help!!! as i am new to this.


Thanks in advance....!
Gift Peddie
Gift Peddie
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16938 Visits: 14456
You need to do text encoding in Java and use the correct collation for each version of Chinese, Japanese, German, French and English. So in Java you text encode and in SQL Server you use collation.

http://java.sun.com/docs/books/tutorial/i18n/text/stream.html

http://msdn.microsoft.com/en-us/library/ms143508.aspx

http://msdn.microsoft.com/en-us/library/ms144250.aspx

Kind regards,
Gift Peddie
nata-1032882
nata-1032882
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 39
The exact thing is I need to Use a Single Collation, so that it has to satisfy all the languages.
I had already Text encoded in java, the problem only with Sql Collation.

I tried using Japanese_Unicode_CI_AS Collation, it is comparing Japanese, Dutch, German, Italy and English,but not supporting Chinese(Simplified, Traditional),Spanish and French.

Please help me.....

Thanks in Advance...
Gift Peddie
Gift Peddie
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16938 Visits: 14456
I don't understand why you would need something that is not technically viable because Japanese and Chinese alphabet is more than 2500 characters while all the other languages uses the latin alphabet at the very least you need two collation but I actually think you need a separate collation for all languages.

Kind regards,
Gift Peddie
nata-1032882
nata-1032882
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 39
hi.....I tried using Chinese_PRC_CI_AS collation , it is now comparing all the languages i.e; Chinese(Simple and traditional), Japanese, Dutch, Spanish, German, Italian, French.

This is the Collation which is working for all languages in a single DB
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search