Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there such thing as 'Unicode collation'?

Tags:

Or if it does not, then what is actually a Sql Server collation? Maybe my understanding of collation (as a concept) is wrong.

I do not wish to specify my collation to greek or icelandic or even western-european. I wish to be able to use any language that is supported in Unicode.

(I'm using MSSQL 2005)

UPDATE: Ok, I'm rephrasing the question: Is there a generic, culture-independent collation that can be used for texts of any culture? I know it will not contain culture-specific rules like 'ty' in Hungarian or ß=ss in German, but will provide consistent, mostly acceptable results.

Is there any collation that is not culture-specific?

like image 790
Dercsár Avatar asked Jul 07 '12 10:07

Dercsár


People also ask

Is SQL_Latin1_General_CP1_CI_AS the same as Latin1_General_CI_AS?

The SQL_Latin1_General_CP1_CI_AS collation is a SQL collation and the rules around sorting data for unicode and non-unicode data are different. The Latin1_General_CI_AS collation is a Windows collation and the rules around sorting unicode and non-unicode data are the same.

What are the different types of collation sensitivity?

The options associated with a collation are case sensitivity, accent sensitivity, kana sensitivity, width sensitivity, and variation-selector sensitivity.

What is string collation?

Collation refers to the organizing of written content into a standardized order. String comparison functions utilize collation rules for Latin. A summary of the rules: Comparisons are case-sensitive. Uppercase letters are greater than lowercase versions of the same letter.

What is Unicode SQL Server?

SQL Server UNICODE() Function The UNICODE() function returns an integer value (the Unicode value), for the first character of the input expression.


1 Answers

Well, there's always a binary collation like Latin1_General_BIN2. It stores the code points in numerical order, which can be pretty arbitrary. It's not culture-specific though (despite the name).

It sounds like there isn't any intelligent way to sort data from multiple languages/cultures together so instead of a half-baked solution, all you can do is sort by the binary values.

like image 95
Chris Smith Avatar answered Nov 05 '22 11:11

Chris Smith