Click here to Skip to main content
15,939,789 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:

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

my code is :
Veh v = new Veh();//Entity Framework
VehEntities context=new VehEntities();;//here which i have add something to convert the result to Arabic letters

So if you have any idea i will be very appreciate
[no name] 5-Apr-13 6:59am    

Share this answer

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

Google Translator[^]

Try to implement it in your application.

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