Where have you been? Even though 1256 charset would work in HTML page, it has been replaced with Unicode, which can be used to support nearly all languages in one text. ASP.NET supports Unicode; using anything else would be quite awkward; I don't even want to discuss it.
Now, do you mean Arabic digits? There are two different meanings in Arabic digits. Commonly used digits '0' to '9' are also called "Arabic" because they have been introduced in Europe by Arabs in X century. If you mean older form of Arabic numerals (٠ - ١ - ٢ - ٣ - ٤ - ٥ - ٦ - ٧ - ٨ - ٩), code points U+0660 to U+0669. This is a different system called "Eastern Arabic Numerals".
See:
http://en.wikipedia.org/wiki/Hindu%E2%80%93Arabic_numeral_system[
^],
http://en.wikipedia.org/wiki/Eastern_Arabic_numerals[
^].
[EDIT]
Please pay attention: you can also use Persian variant of Eastern Arabic numerals, with each digit using different Unicode code point, even for digit glyphs looking identical. Please see the second link above.
[END EDIT]
To find any code point, you can use the "Character Map" application bundled with all versions of Windows, charmap.exe.
Now, I'm afraid that if you want to use Eastern Arabic system, you will have to replace the digits by your own code. As far as I understand, in Arabic countries both systems are used, and the use of '0'-'9' is the default. As I learned from the other CodeProject questions, the methods of numeric types
ToString(IFormatProvider)
will return a string with '0'-'9' digits even if Arabic culture is used as the argument.
For thee usage of
IFormatProvider
, use the class
System.Globalization.CultureInfo
which implements this interface.
See
http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx[
^].
For example of the usage of
ToString(IFormatProvider)
(with culture) see, for example
System.Int32.ToString
with code sample:
http://msdn.microsoft.com/en-us/library/cht2hdff.aspx[
^].
You certainly need to understand how Unicode works. See:
http://en.wikipedia.org/wiki/Unicode[
^],
http://unicode.org/[
^],
http://unicode.org/faq/utf_bom.html[
^].
—SA