Hi I designed a simple site using visual studio 2005 , on the site I used Arabic code, and it work fine on the local host, but when I test my site on Winhost Server, the Arabic character showing in 7-bit mode unreadable. But the data Arabic characters witch comes from the database readable work fine. I add the following <meta> tag in the header: <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> Also I put this in the Web.config: <system.web> <globalization responseEncoding="utf-8" /> </system.web> but it didn't work. I'm wondering if your server support UTF-8 and Arabic code . Your response to this problem is appreciated!!! Best regards Farid Haddadin
Hi,, If the problem not from the server setting concerning the UTF-8 , can any one help me why the Arabic characters not readable.
Are you pulling any of the data from a SQL database. That also will affect the fonts. Make sure you are storing and calling on the data as nvarchar
I have no problem with the data witch I'm pulling from the database, i used nvarchar, but the problem is when I use Arabic character in HTML tags such as <p> عربي </p><h1> ...
You cannot use Arabic characters in the html tag. Our server is US/English base and cannot directly read Arabic characters. The characters itself will have to typed in english with the web page, but when displayed on the browser, the browser will translate it to the correct font.
thanks all, my problem was resolved by placing the following <meta> tag: <meta http-equiv="Content-Type" content="text/html; charset=windows-utf-8" /> also in the <html> tag lang="ar-eg"