|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, June 29, 2009 7:12 AM
Points: 45,
Visits: 17
|
|
Hi all, I am in the process of Internationalizing our website. I am aware that I may well have to make changes to the database with regards to collation. I need to know which is the best catch all collation type or am I going to have bigger problems?
The main languages that we are going to use i.e. English, French, Spanish, etc all work ok with the default collation on the appropriate text column. I start to have problems when I try to store Hindi characters. When I look at the database after storing the Hindi text or try to display it onlt show loads of question marks as follows '??? ???? ??'. Any idea what I need to do to fix this? Am I going to have to create different columns with different collations?
Any advice greatly appreciated.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Sunday, November 04, 2012 12:23 PM
Points: 2,087,
Visits: 3,932
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, June 29, 2009 7:12 AM
Points: 45,
Visits: 17
|
|
I still current have everything set to the database default, which is as follows;
Windows Collation - Latin1_General Dictionary Sort - Accent Sensitive.
This is working fine for most of main languages as previously stated but something is terribly wrong when I store Hindi which made me think about the collation. I do not want to change anything if I can help it but I do not know how else to fix it?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Sunday, November 04, 2012 12:23 PM
Points: 2,087,
Visits: 3,932
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 4:44 AM
Points: 2,802,
Visits: 7,106
|
|
Scout7 (3/11/2009)
I still current have everything set to the database default, which is as follows; Windows Collation - Latin1_General Dictionary Sort - Accent Sensitive. This is working fine for most of main languages as previously stated but something is terribly wrong when I store Hindi which made me think about the collation. I do not want to change anything if I can help it but I do not know how else to fix it? 
Collation does not affect the way the data is stored, it only really affects the way character fields are sorted and compared to each other.
As long as you are using unicode columns, and insert the data using the leading 'N' for unicode , then the data should store without any issues.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, June 29, 2009 7:12 AM
Points: 45,
Visits: 17
|
|
I am now officially an idiot. The datacolumn is correct in being NVarchar(MAX) BUT I overlooked the fact that my stored procedure was accepting the data as only Varchar(MAX), doh!!! 
Changed so all paramter types are the same and all is working well. 
Thanks for your help.
|
|
|
|