Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a string that has been encoded for transmission in a URL into a decoded string.
To encode or decode values outside of a web application, use the WebUtility class.
UrlDecode(String, Encoding) |
Converts a URL-encoded string into a decoded string, using the specified encoding object. |
UrlDecode(Byte[], Int32, Int32, Encoding) |
Converts a URL-encoded byte array into a decoded string using the specified encoding object, starting at the specified position in the array, and continuing for the specified number of bytes. |
UrlDecode(String) |
Converts a string that has been encoded for transmission in a URL into a decoded string. |
UrlDecode(Byte[], Encoding) |
Converts a URL-encoded byte array into a decoded string using the specified decoding object. |
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
Converts a URL-encoded string into a decoded string, using the specified encoding object.
Parameters
- str
- String
The string to decode.
Returns
A decoded string.
If characters such as blanks and punctuation are passed in an HTTP stream, they might be misinterpreted at the receiving end. URL encoding converts characters that are not allowed in a URL into character-entity equivalents; URL decoding reverses the encoding. For example, when embedded in a block of text to be transmitted in a URL, the characters < and > are encoded as %3c and %3e.
To encode or decode values outside of a web application, use the WebUtility class.
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
Converts a URL-encoded byte array into a decoded string using the specified encoding object, starting at the specified position in the array, and continuing for the specified number of bytes.
Parameters
- bytes
- Byte[]
The array of bytes to decode.
- offset
- Int32
The position in the byte to begin decoding.
- count
- Int32
The number of bytes to decode.
Returns
A decoded string.
Exceptions
is , but does not equal .
is less than or greater than the length of the array.
-or-
is less than , or + is greater than the length of the array.
If characters such as blanks and punctuation are passed in an HTTP stream, they might be misinterpreted at the receiving end. URL encoding converts characters that are not allowed in a URL into character-entity equivalents; URL decoding reverses the encoding. For example, when embedded in a block of text to be transmitted in a URL the characters < and > are encoded as %3c and %3e.
To encode or decode values outside of a web application, use the WebUtility class.
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
Converts a string that has been encoded for transmission in a URL into a decoded string.
Parameters
- str
- String
The string to decode.
Returns
A decoded string.
If characters such as blanks and punctuation are passed in an HTTP stream, they might be misinterpreted at the receiving end. URL encoding converts characters that are not allowed in a URL into character-entity equivalents; URL decoding reverses the encoding. For example, when embedded in a block of text to be transmitted in a URL, the characters < and > are encoded as %3c and %3e.
To encode or decode values outside of a web application, use the WebUtility class.
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
- Source:
- HttpUtility.cs
Converts a URL-encoded byte array into a decoded string using the specified decoding object.
Parameters
- bytes
- Byte[]
The array of bytes to decode.
Returns
A decoded string.
If characters such as blanks and punctuation are passed in an HTTP stream, they might be misinterpreted at the receiving end. URL encoding converts characters that are not allowed in a URL into character-entity equivalents; URL decoding reverses the encoding. For example, when embedded in a block of text to be transmitted in a URL, the characters < and > are encoded as %3c and %3e.
To encode or decode values outside of a web application, use the WebUtility class.
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论