string = InternetCanonicalizeUrl(url, flags
Canonicalizes a URL, which includes
converting unsafe characters and spaces into escape sequences.
Parametersurl : string
The URL to canonicalize.flags=0 : int
integer value that contains the flags that control
canonicalization. This can be one of the following values:
|ICU_BROWSER_MODE||Does not encode or decode characters after "#" or "?", and does not remove trailing white space after "?". If this value is not specified, the entire URL is encoded and trailing white space is removed.|
|ICU_DECODE||Converts all %XX sequences to characters, including escape sequences, before the URL is parsed.|
|ICU_ENCODE_PERCENT||Encodes any percent signs encountered. By default, percent signs are not encoded. This value is available in Microsoft® Internet Explorer 5 and later versions of the Win32® Internet functions.|
|ICU_ENCODE_SPACES_ONLY||Encodes spaces only.|
|ICU_NO_ENCODE||Does not convert unsafe characters to escape sequences.|
|ICU_NO_META||Does not remove meta sequences (such as "." and "..") from the URL.
If no flags are specified (dwFlags = 0), the function converts all unsafe characters and meta sequences (such as .,\\ .., and ...) to escape sequences.|