sahm wrote:
How to assign Unicode charter (like arabiac) to varibl in javascript
Are you asking about Arabic characters? You can use a text editor that
supports Unicode and save your HTML documents with embedded scripts or
your external script files as UTF-8 then you can use the characters
literally e.g.
var s = "بال*روف العربية";
Or you can use Unicode escape sequences in JavaScript string literals e.g.
var s =
"\u0628\u0627\u0644\u062D\u0631\u0648\u0641\u0020\ u0627\u0644\u0639\u0631\u0628\u064A\u0629";
Finally there is String.fromCharCode e.g.
var s = String.fromCharCode(1576, 1575, 1604, 1581, 1585, 1608, 1601,
32, 1575, 1604, 1593, 1585, 1576, 1610, 1577);
--
Martin Honnen
http://JavaScript.FAQTs.com/