Textbox Asp.net中的中文字符 [英] Chinese characters in Textbox Asp.net

查看:116
本文介绍了Textbox Asp.net中的中文字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们在asp.net应用程序中需要多语言输入条目。根据用户选择的语言,将更改文本框和其他控件的输入语言。例如,在Textbox中,我们将字体系列更改为中文(GoJuOn)以输入中文字符。问题是当我在codebehind文件中获取文本框值以保存在数据库中时,文本框文本是英文而不是中文或用户被选中的任何其他语言。需要任何解决方案或建议。在此先感谢..

Hi,
we have a requirement of multilanguages input entry in asp.net application. Based on the user selected language the input language of textbox and other controls will be changed. for example in Textbox we changed the font family to chinese language(GoJuOn) to input chinese characters. The problem is while i am getting the textbox value in codebehind file to save in database the textbox text is in english not in chinese or anyother language which the user was selected. any solution or advice needed. Thanks in advance..

推荐答案

使用unicode编码



使用Unicode编码 [ ^ ]

在ASP.NET中使用字符编码 [ ^ ]
Use unicode encoding

Using Unicode Encoding[^]
Using Character Encoding in ASP.NET[^]


这篇关于Textbox Asp.net中的中文字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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