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

Description

Parses a query string using a specified encoding.

Syntax

encoderInstance.ParseQueryString(string queryString, string encodingName)

Arguments

ClassNameDescription
stringqueryStringThe query string to parse.
stringencodingNameA encoding name.

Return value

ClassDescription
dictionary{string}A dictionary of query parameter and value.

Sample code

//anyEncoder is an instance of the encoder type.

//queryString is a query strinig.

dictionary{string} queries = anyEncoder.HtmlDecode(queryString, "shift_jis");

Notes

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

Links for reference

Copyright © Rice All rights reserved.