Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Global Object escape Method

Encodes String objects so they can be read on all computers.

Syntax: JScript Global Object escape Method

escape(charstring)

Arguments: JScript Global Object escape Method

charstring

A String object to be encoded.

Remarks: JScript Global Object escape Method

The escape method returns a new String object (in Unicode format) that contains the contents of charstring. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20."

Characters with a value greater than 255 are stored using the %uxxxx format.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.