I have a SQL Server database with default collation Latin1_General_CI_AS
.
My table's columns are of nvarchar
or ntext
data type.
The database is to for a website which can be multilingual, must support at least Polish, English, later also Ukrainian and French.
I am even struggling to make it accept Polish characters. With columns of type nvarchar/ntext
, I can manually change a string in the database to use Polish special characters but when using insert
or UPDATE
statements the special characters are stripped of their accents.
Eg.
INSERT INTO Some_Table
VALUES( 7, 'aśęóń', 'ąćł', 0.1, 1)
this ends up being 'aseón' and 'acl' in the second and third columns on INSERT
or UPDATE
so loses original characters.
I have tried to set up different collation but even if the field has Polish_CS_AS
it doesn't accept Polish chars on insert/ update.
How to make the database to accept different language characters?
Try:
INSERT INTO Some_Table VALUES( 7, N'aśęóń', N'ąćł', 0.1, 1)
if you have already set the corresponding column toNVARCHAR
and the total number of values you tried to insert equal to what your table has since you did not specify which columns need to be inserted.