我想用文本框和英语写阿拉伯语 [英] I want to write arabic language in textbox and english language

查看:95
本文介绍了我想用文本框和英语写阿拉伯语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想知道如何使用VB.net在textbox asp.net中编写阿拉伯语,我也需要sql数据库列接受阿拉伯语。



我尝试过:



Hello I want to know how to write arabic in textbox asp.net using VB.net, also i need sql database column accept arabic language.

What I have tried:

ello I want to know how to write arabic in textbox asp.net using VB.net, also i need sql database column accept arabic language.  

推荐答案

您必须使用.NET已经使用的Unicode。对于网页,您必须在 web.config 文件中配置编码,例如:

You have to use Unicode which is used by .NET already. For the web page you have to configure the encoding in the web.config file like:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

另请参阅如何:选择ASP.NET网页全球化编码 [ ^ ]。



使用MS T-SQL,您必须使用 nchar和nvarchar(Transact-SQL)| Microsoft Docs [ ^ ]类型用于存储Unicode文本。对于其他数据库引擎,请参阅其文档。

See also How to: Select an Encoding for ASP.NET Web Page Globalization[^].

With MS T-SQL you have to use the nchar and nvarchar (Transact-SQL) | Microsoft Docs[^] types to store Unicode text. For other database engines see their documentation.


这篇关于我想用文本框和英语写阿拉伯语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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