Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am developing a windows application based on .Net. I want to take input from user in marathi language and save the same in sql server database. Also retrieve the data from sql server in marathi language. I have searched and searching now too for solution.

I just know that for saving data in marathi or any other language in sql server, the datatype should be Nvarchar.

Please Note that the client pc is not having Internet Connection so I cannot use Google Translate service or any other service which need Internet Connection.

please help me in solving this.

Thanks in Advance !!!....
Posted
Comments
[no name] 25-Aug-13 11:37am    
Help in solving what? Get the data and save it to the database. What is the actual problem?
Mahesh Bailwal 25-Aug-13 11:53am    
As far as saving and reverting data from database it remains same for all languages whether english, hindi or marthi. So where do you think you will have problem.?
Ank_ush 25-Aug-13 12:13pm    
When I save the data to sql, it is saved as ????? and while retrieving also same ????? how to solve this ?
Sergey Alexandrovich Kryukov 25-Aug-13 15:07pm    
Not enough information.
??? usually happen when Unicode is converted to ANSI or ASCII, when information is lost. You need to check up all stages.
—SA

1 solution

Check this link,

Same question asked before in code project.

C#
Use N before parameter i.e.
 
Insert into test(TextName) values(N'@TextName')
 
and field datatype should be nvarchar(max)


Save Hindi,Marthi Content in Sql Server database[^]

how to store hindi data in sql server 2005[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900