Flex: encodeuri: encode the URL. It is a Chinese URL.

Source: Internet
Author: User
Tags encode string

 

 

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.

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.