Reputation: 3279
I use VS2010,C# to develop my ASP.NET web app, I want to display my numbers in Arabic/Farsi mode, I mean both markup numbers and numbers displayed through code, what are my options? I've used lang="ar", dir="rtl" but nothing changes, should my users change anything in their browsers? I've seen several sites that display Arabic numbers but I've not changed my browser settings at all! should I convert anything in my code? what about markup pages?
thanks
Upvotes: 1
Views: 3996
Reputation: 836
I think most of this is related to users system configurations. EX: in windows vista, server 2008 control panel => region and language settings => additional settings => numbers tab => check standard digits and use native digits options
however you should be doing the following in your code:
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-EG");
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-EG");
Upvotes: 1