IServer::URLEncode

This method applies URL encoding rules, including escape characters, to the specfied string. For more information, see the URLEncode method of the Server Object.

HRESULT URLEncode(

BSTR bstrIn,

//string that contains the text to be encoded

BSTR * pbstrEncoded

//pointer to a string that receives the encoded text

);