unescape / escape characters - ??? (Posted by lloydhass)

They have: 5,633 posts

Joined: Jan 1970

I have just been playing around with unescape/escape characters and cannot find a way to get the values for letters. In the example below, how could create a script that returns the escape value of "H"? (which happens to be %48)

var output = escape('Hello World!');
output = Hello%20World%21

----------
[email protected]
http://go.to/hass

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Are you trying to make it so that the code would send back the escape for any character entered, or just the "H"? This looks like alot of substring stuff but I'm not sure if there is an easy way I am just missing.. Smiling

I'll let you know if I find out more. Smiling

They have: 5,633 posts

Joined: Jan 1970

I would like the escape values returned for all characters within the string. I have searched around for an answer to this but no one seems to know anything about this topic.

----------
[email protected]
http://go.to/hass - http://connect.to/wpd

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.