我的网站是显示阿拉伯文字的问号符号
我有这个问题,我想提出一个网站,显示的阿拉伯语新闻的RSS Feed,这样我插入到SQL Server数据库中的标题,正文(介绍)和每条新闻的链接,但它们存储在数据库中(?)符号所以当我请求从数据库中的数据,它显示(?)符号的网页中显示它。我怎样才能使它显示阿拉伯字符?
I have this problem where I am making a website that displays a news rss feed in Arabic so I insert to sql server database the title, body (description) and the link of each news but they stored in database as (?) symbols so when I request the data from the database to display it in the webpage it displays (?) symbols. How can I make it display the Arabic characters?
我试过
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
但也不是办法,请帮忙吗?!
but that was not the solution please any help?!!
请在你的数据库确保您的数据类型允许特殊(如统一code)字符插入。在SQL Server为例,你应该使用nvarchar数据类型而不是VARCHAR。您的RDBMS是什么?
Make sure your data type in your database allow insertion of special (eg. Unicode) characters. In Sql Server, as example, you should use nvarchar data type instead of varchar. What is your RDBMS?