Reputation: 815
I created MVC ASP.Net Web application and tried insert Thai language data to SQL Server 2008 database to field with data type text and then database store ?????? which is incorrect. For Html Page I user charset utf-8
However I tried to Encode string before insert data to database and change database field collation. These do not solve problem.
I'm looking forward to your reply.
Thanks,
embarus
Upvotes: 0
Views: 6229
Reputation: 41
You have to change you COLLATE by this code : ALTER DATABASE [DatabaseName] COLLATE Thai_CI_AS
Upvotes: 0
Reputation: 64645
SQL Server cannot natively store UTF-8. If you want to store UTF-8 data you have a few choices:
Upvotes: 1
Reputation: 65268
Try using the NVARCHAR(MAX) datatype. This may solve the problem. What error are you getting?
Upvotes: 1