Click here to Skip to main content
15,886,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
so i have a text box that i have to put some Arabic characters into this text box and save it to sqlserver, my problem is when i saved changes in Sql Server it saved as "?", i already defined the column as nvarchar in SqlServer, and i use Entity Framework to save my data, i found this code but it use a simple Sql cmd:

C#
insert into [YourTableNameHere] values(N'" + yourValue+ "')


my code is :
C#
Veh v = new Veh();//Entity Framework
VehEntities context=new VehEntities();
v.car=TxBoxCarNumber.Text;//here which i have add something to convert the result to Arabic letters
context.Vehs.Add(v);
context.SaveChanges();

So if you have any idea i will be very appreciate
Posted
Comments
[no name] 5-Apr-13 6:59am    
Try http://stackoverflow.com/questions/9740871/how-to-insert-arabic-characters-into-sql-server-database

 
Share this answer
 
Hi,

You might wana check the below link, it is pretty useful.

Google Translator[^]

Try to implement it in your application.

-Anurag
 
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