UrlEncode()

HttpUtility::UrlEncode(String) method

Encodes URI fragment.

static String System::Web::HttpUtility::UrlEncode(String str)

Arguments

ParameterTypeDescription
strStringURI fragment to encode.

Return Value

Encoded URI fragment.

HttpUtility::UrlEncode(String, const System::SharedPtr<Text::Encoding>&) method

Encodes URI fragment.

static String System::Web::HttpUtility::UrlEncode(String str, const System::SharedPtr<Text::Encoding> &e)

Arguments

ParameterTypeDescription
strStringURI fragment to encode.
econst System::SharedPtr<Text::Encoding>&Encoding to use.

Return Value

Encoded URI fragment.

HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t>&) method

Encodes URI fragment.

static String System::Web::HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t> &bytes)

Arguments

ParameterTypeDescription
bytesconst System::ArrayPtr<uint8_t>&URI fragment to encode.

Return Value

Encoded URI fragment.

HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t>&, int32_t, int32_t) method

Encodes URI fragment.

static String System::Web::HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t> &bytes, int32_t offset, int32_t count)

Arguments

ParameterTypeDescription
bytesconst System::ArrayPtr<uint8_t>&URI fragment to encode.
offsetint32_tOffset in the given byte array.
countint32_tNumber of bytes to read from.

Return Value

Encoded URI fragment.

See Also