code_junkie

What is an easy way to call Asc() and Chr() in JavaScript for Unicode values

Nov 13th, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. String.fromCharCode(64)
  2.  
  3. String.charCodeAt(0)
  4.  
  5. document.write("Unicode for char2580 is: " + "ਔ".charCodeAt(0) + "<br />");
  6. document.write("Char2580 is " + String.fromCharCode(2580) + "<br />");
Add Comment
Please, Sign In to add comment