This method applies URL encoding rules, including escape characters, to the specified string. For more information, see the URLEncode method of the Server object.
HRESULT URLEncode(
BSTR bstrIn, |
//binary string that contains the text to be encoded |
BSTR * pbstrEncoded |
//pointer to a binary string that receives the encoded text |
); |