Numbers localization

Posted by Reza on Stack Overflow See other posts from Stack Overflow or by Reza
Published on 2012-12-07T05:14:24Z Indexed on 2012/12/08 17:04 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about html

Related posts about css