Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/URL-encoding/Run-BASIC/url-encoding.basic
Normal file
9
Task/URL-encoding/Run-BASIC/url-encoding.basic
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