To write an XML file using ASP, you must addCode: <% @ Language = " VBScript " CodePage = " 65001 " %>
Encodeuri Method
Encodes a text string into a valid Uniform Resource Identifier (URI ).
Encodeuri (uristring)
The required uristring parameter represents an encoded Uri.
Description
The encodeuri method returns an encoded Uri. If you pass the encoding result to decodeuri, the initial string is returned. The encodeuri method does not encode the following characters: ":", "/", ";", and "? ". Use the encodeuricomponent method to encode these characters.
Decodeuricomponent Method
Returns the non-encoding form of an encoded component of the Uniform Resource Identifier (URI.
Decodeuricomponent (encodeduristring)
The required encodeduristring parameter represents an encoded URI component.
Description
Uricomponent is part of a complete Uri.
If encodeduristring is invalid, A urierror is generated.
Decodeuri Method
Returns the unencoded format of an encoded Uniform Resource Identifier (URI.
Decodeuri (uristring)
The required uristring parameter indicates the value of an encoded Uri.
Description
Use the decodeuri method to replace the obsolete Unescape method.
The decodeuri method returns a string value.
If uristring is invalid, A urierror is generated.
Escape Method
Encode string objects so that they can be read on all computers,
Escape (charstring)
The required charstring parameter is any string object or text to be encoded.
Description
The escape method returns a string containing the charstring content (in unicode format ). All spaces, punctuation marks, accents, and other non-ASCII characters are replaced by % XX encoding. XX equals to the hexadecimal number of the character. For example, "% 20" is returned by a space ".
The characters with a value greater than 255 are stored in % uxxxx format.
Note that the escape method cannot be used to encode the Uniform Resource Identifier (URI. Use the encodeuri and encodeuricomponent methods for encoding.
Unescape Method
Decodes string objects encoded using the escape method.
Unescape (charstring)
The required charstring parameter is the string object to be decoded.
Description
The Unescape method returns a string value containing charstring content. All characters encoded in % XX hexadecimal format are replaced by characters of medium price in the ASCII character set.
Characters encoded in % uxxxx format (UNICODE character) are replaced by Unicode characters encoded in hexadecimal format XXXX.
Note that the Unescape method cannot be used to decode the Uniform Resource Identifier (URI ). The decodeuri and decodeuricomponent methods can be used to decode this code.