ansii

anybody know how to change ansii code to character in java script..??? and the reverse also,.,...

thank you...
leo_unicsAsked:
Who is Participating?
 
nettromConnect With a Mentor Commented:
he's probably looking for the JavaScript 1.2 methods of the string object:

String.fromCharCode()
charCodeat()

the first has to be called as a method of the String object and will return a String based on the numerical values sent to it.  charCodeAt() is a method of any String object, and returns the Unicode/ISO-8859-1 (depends on JS version) character code for the character at a given position.

see:
http://msdn.microsoft.com/scripting/jscript/doc/jsstringcharCodeAt.htm
http://msdn.microsoft.com/scripting/jscript/doc/jsstringfromCharCode.htm
http://developer.netscape.com/docs/manuals/js/client/jsref/string.htm#1196647
http://developer.netscape.com/docs/manuals/js/client/jsref/string.htm#1225094
0
 
brigmarCommented:
There's ASCII and there's ANSI. There's no ANSII. Which are you referring to ?
0
 
leo_unicsAuthor Commented:
Im sorry I mean Ascii code of the character. actually i'm looking for the function of Chr() and Asc() of VBScript in JavaScript.

Thank you ...
0
 
leo_unicsAuthor Commented:
Im sorry I mean Ascii code of the character. actually i'm looking for the function of Chr() and Asc() of VBScript in JavaScript.

Thank you ...
0
 
brigmarCommented:
nettrom has the answer
0
All Courses

From novice to tech pro — start learning today.