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

Description

Encodes a URL string.

Syntax

encoderInstance.UrlEncode(string anyString)

Arguments

ClassNameDescription
stringanyStringAn any string.

Return value

ClassDescription
stringA URL-encode string.

Sample code

//anyEncoder is an instance of the encoder type.

//anyString is an any string.

string encoded = anyEncoder.UrlEncode(anyString);

Notes

It's a wrapper of the System.Web.HttpUtility.UrlEncode(String).

This method will decode using UTF-8.

Links for reference

Copyright © Rice All rights reserved.