将印地语值存储到数据库中 [英] storing Hindi value into database

查看:67
本文介绍了将印地语值存储到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASp.net应用程序印地语到Unicode转换问题

先生,我有一个.aspx页面,我有一个文本框,里面有印地文字体.当我从键盘输入数据时.在文本框中印地文输入的文本.

但是当iam将其存储到字符串变量中时,没有获得实际值.

我也想将该记录转换成印地语.然后要将其存储到数据库中.

ASp.net application Hindi to unicode convertion problem

Sir i have a .aspx page, there i have text box, which have hindi font. when i put data from keyboard. the text coming in hindi on text box.

but when iam storing it into string variable, not getting actual value.

also i want to convert that record , which in hindi to unicode. then want to store it into database.

someone plzzzzz help, got struck.

推荐答案

有人请给我解决方案


Sanjay

C#.net字符串类型可以处理unicode,但是请确保将数据存储在nvarchar或ntext中,因为varchar和text不能处理unicode数据.

另一件事是在页面上显示数据时将文本编码设置为utf,如
< meta http-equiv ="Content-Type" content ="text/html; charset = utf-8">

问候
帕万

注意:如果符合您的条件,请将答案标记为已接受
Sanjay

C#.net string type handles unicode, however make sure that you are storing the data in either nvarchar or ntext since varchar and text don''t handle unicode data.

The other thing is while displaying the data on a page set text encoding to utf like
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Regards
Pawan

NOTE: please mark the answer as accepted if it fits your criteria


这篇关于将印地语值存储到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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