我的网站是显示阿拉伯文字的问号符号 [英] My website is displaying Arabic text as question mark symbols

查看:338
本文介绍了我的网站是显示阿拉伯文字的问号符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,我想提出一个网站,显示的阿拉伯语新闻的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?

这篇关于我的网站是显示阿拉伯文字的问号符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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