存储阿拉伯语文本时,从azure SQL Server数据库中获取未知字符 [英] getting unknown characters from azure SQL server databases when storing Arabic language Text
问题描述
我试图从Azure SQL Server数据库中获取阿拉伯文本
I have tried to get Arabic text from Azure SQL Server databases
我在创建数据库时为数据库定义了许多排序规则,但它们仍然无法正常工作. 在数据库中插入文本我总是在阿拉伯数据之前添加'N'字符.
I defined many Collations for my database when creating it and they still not work. Inserting text to the database I always add 'N' character before Arabic data .
使用本地SQL Server可以,没问题 有任何想法吗?
Working with local SQL server its Ok no problems Any Idea ?
推荐答案
使用NVARCHAR
作为列类型,应该没有问题.我成功地将阿拉伯文本输入到SQL Azure表中(使用Google翻译将"Hello World"翻译成阿拉伯语,因此,如果这些单词实际上是其他单词,请不要大笑或滥用):
Using NVARCHAR
for the column type you should have no issues. I successfully got an Arabic text into SQL Azure table (used google translate to translate "Hello World" into Arabic, so do not laugh or abuse if the words are actually other):
这篇关于存储阿拉伯语文本时,从azure SQL Server数据库中获取未知字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!