views:

112

answers:

1

Hi, I am developing a web application in Arabic. For that I convert existing pages in English to Arabic and save the file with encoding.

But when I restarted Visual Studio all the arabic characters are changed to '?'.

What might have caused this?

Any help will be appreciated.

Thanks

+1  A: 

This may be an issue of character-encoding.

You can try adding this to your header:

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">

or set your document encoding to 8859-6

Randz
Where can I set the encoding for a document?
rahul
Isn't `charset=utf-8` usually better?
Kobi
DaveE
ISO 8859-6 is specifically designed for Arabic encoding. (http://www.unicodetools.com/unicode/codepages.php?codepage=iso-8859-6). You can find more information on ISO 8859 charsets here: http://czyborra.com/charsets/iso8859.htmlMaybe other readers can contribute on the difference of using ISO 8859-6 and UTF-8
Randz
Nobodt uses ISO 8859-6, I'd say most (95%) of the electronic content in Arabic is encoded MS CP 1256.
Osama ALASSIRY