Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
14
Task/URL-decoding/VBScript/url-decoding.vb
Normal file
14
Task/URL-decoding/VBScript/url-decoding.vb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Function UrlDecode(s)
|
||||
For i = 1 To Len(s)
|
||||
If Mid(s,i,1) = "%" Then
|
||||
UrlDecode = UrlDecode & Chr("&H" & Mid(s,i+1,2))
|
||||
i = i + 2
|
||||
Else
|
||||
UrlDecode = UrlDecode & Mid(s,i,1)
|
||||
End If
|
||||
Next
|
||||
End Function
|
||||
|
||||
url = "http%3A%2F%2Ffoo%20bar%2F"
|
||||
WScript.Echo "Encoded URL: " & url & vbCrLf &_
|
||||
"Decoded URL: " & UrlDecode(url)
|
||||
Loading…
Add table
Add a link
Reference in a new issue