Numbers localization
- by Reza
How can I set the variant of Arabic numeral without changing number characters ?
Eastern Arabic ? ? ? ? ? ? ? ? ? ?
Persian variant ? ? ? ? ? ? ? ? ? ?
Western Arabic 0 1 2 3 4 5 6 7 8 9
here is a sample code:
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title></title>
</head>
<body>
<div lang="fa">123456789</div>
<div lang="ar">123456789</div>
<div lang="en">123456789</div>
</body>
</html>
Also note that in Windows text boxes (e.g. Run) numbers are displayed correctly according to surrounding text languages.