ballerina.net.uri package

public function decode ( string url , string charset ) ( string , error )

Decodes the given URL

Parameter Name Data Type Description
url string URL to be decoded
charset string Charactor set that URL to be decoded

Return Variable Data Type Description
string The decoded URL
error Error occured during decoding the URL

public function encode ( string url , string charset ) ( string , error )

Encodes the given URL

Parameter Name Data Type Description
url string URL to be encoded
charset string Charactor set that URL to be encoded

Return Variable Data Type Description
string The encoded URL
error Error occured during encoding the URL