在vb.net的文本框中的阿拉伯语 [英] Arabic language in text box in vb.net

查看:65
本文介绍了在vb.net的文本框中的阿拉伯语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问谁可以帮助我?

首先我在sql server中创建数据库

i使数据类型为列nvchar(因为我需要阿拉伯语)

和我在proporites阿拉伯语进行整理

所有东西直到这里都没问题!

i尝试用我的手将数据插入表中
每件事都可以,语言插入阿拉伯语(这就是我需要的!)

但是当我将数据库连接到vb.net windowsform项目时

并且我制作了一个文本框以在表格中插入数据

当我插入一个阿拉伯字符时,它在数据库中显示为???

i试图制作表格从右到左并且左边的布局是真的

和文本框字体我选择支持阿拉伯语的字体,我从右到左制作

但是什么都没有改变了

数据在数据库中显示为????

我该怎么办?请帮帮我

Please who can help me?
first i create a database in sql server
i make the data type of Columns nvchar (beacause i need arabic language)
and i make the collation in the proporites arabic
everything till here is ok!!
i try to insert data into the table by my hand
every thing is ok and the language inserted arabic(thats what i need!)
but when i connect the database to a vb.net windowsform project
and i make a text Box to insert data in the table
when i insert an arabic characters it shown in database as "???"
i tried to make the form "from right to left" and the layout right left is true
and the textbox font i choose a font that Support arabic and i make it from right to left
Yet nothing has changed
the data is shown in data base as" ????"
what can i do? please help me

推荐答案

我们有更多细节可以帮到你,但你应该对编码类(System.Text) [ ^ ]
We nned more details to help you, but you should be interested for Encoding Class (System.Text)[^]


HELLO再次每个人

i找到了解决方案

是我们必须将数据库排序规则更改为ARABIC_CI_AS

而不是表或列的整理

thnx everybody
HELLO again every body
i found the solution
is that we must change the database collation to "ARABIC_CI_AS"
not the collation of table or columns
thnx everybody


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

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