all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
9
Task/URL-encoding/Run-BASIC/url-encoding.run
Normal file
9
Task/URL-encoding/Run-BASIC/url-encoding.run
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
urlIn$ = "http://foo bar/"
|
||||
|
||||
for i = 1 to len(urlIn$)
|
||||
a$ = mid$(urlIn$,i,1)
|
||||
if (a$ >= "0" and a$ <= "9") _
|
||||
or (a$ >= "A" and a$ <= "Z") _
|
||||
or (a$ >= "a" and a$ <= "z") then url$ = url$ + a$ else url$ = url$ + "%"+dechex$(asc(a$))
|
||||
next i
|
||||
print urlIn$;" -> ";url$
|
||||
Loading…
Add table
Add a link
Reference in a new issue