encoder class : UrlDecode(string,string) method
Description
Decodes a string using URL encoding and specified character encoding.
Syntax
encoderInstance.UrlDecode(string encodedString, string encodingName)
Arguments
Class | Name | Description |
string | encodedString | A string encoded by URL encoding. |
string | encodingName | A encoding name. |
Return value
Class | Description |
string | A string decoded by URL encoding and specified character encoding.. |
Sample code
1: | encoder e = new encoder(); |
2: | string encoded = "%93%FA%96%7B%8C%EA"; |
3: | string decoded = e.UrlDecode(encoded, "shift_jis"); // The result is "日本語". |
Notes
It's a wrapper of the System.Web.HttpUtility.UrlDecode(String,Encoding) method.