Home Cooker Classes Others Rice CookerGX
Classes  >  encoder  >  UrlDecode(string,string)
encoder class : UrlDecode(string,string) method

Description

Converts a URL-decode string using a specified encoding.

Syntax

encoderInstance.UrlDecode(string encodedString, string encodingName)

Arguments

ClassNameDescription
stringencodedStringA URL-encode string.
stringencodingNameA encoding name.

Return value

ClassDescription
stringA URL-decode string.

Sample code

//anyEncoder is an instance of the encoder type.

//encoded is a string that was encoded by URL-encode.

string decoded = anyEncoder.UrlDecode(encoded, "shift_jis");

Notes

It's a wrapper of the System.Web.HttpUtility.UrlDecode(String,Encoding).

Links for reference

Copyright © Rice All rights reserved.