在C#中插入乌尔都语时遇到问题 [英] Getting a problem to insert Urdu Language in C#

查看:88
本文介绍了在C#中插入乌尔都语时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在C#中输入乌尔都语时遇到问题

当我写urdu语言并尝试插入数据库时​​。

?????????正在插入乌尔都语语言表格。

如果我写اسلم并插入数据库然后问号就像?????????插入

任何人都可以帮我解决这个问题

问候。

Hi
Getting a problem to insert Urdu Language in C#
when ever i write urdu language and try to insert into database.
????????? is being insert in table insted of Urdu language.
if i write "اسلم" and insert into database then question mark like ????????? in being inserted
Can any one help me in this problem
Regards.

推荐答案

亲爱的乌斯曼,



请记住,在数据库中将字段的数据类型放在 nvarchar 中,并在保存到数据库时使用



N''ourourUrduText''



例如< br $> b $ b

Dear Usman,

Remember, In database put the Datatype of your Field in nvarchar and when saving into database use

N''yourUrduText''

for example

insert into [tablename] ([fieldname]) values ('N'@urduvalue)





请检查插入数据库之前的值应该如下:



N''ايکگائےاوربکري·بچےکيد''





谢谢

Ashish

如果这个标记答案是你的解决方案,以便其他人可以参考解决方案



please check the value before inserting into database it should be like following

N''ايک گائے اور بکري · بچے کي د''


Thanks
Ashish
Mark it answer if this is your solution, so that other can refer the solution


您可以按照此链接在数据库中保存urdu使用c sharp源代码也附加下载.. http://codingresolved.com/discussion/218/how-to-save-urdu-in-sql- server-using-c [ ^ ]
Hi follow this link for save urdu in database using c sharp source code also attach for download.. http://codingresolved.com/discussion/218/how-to-save-urdu-in-sql-server-using-c[^]


这篇关于在C#中插入乌尔都语时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆