Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/URL-encoding/TUSCRIPT/url-encoding.tu
Normal file
10
Task/URL-encoding/TUSCRIPT/url-encoding.tu
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$$ MODE TUSCRIPT
|
||||
text="http://foo bar/"
|
||||
BUILD S_TABLE spez_char="::>/:</::<%:"
|
||||
spez_char=STRINGS (text,spez_char)
|
||||
LOOP/CLEAR c=spez_char
|
||||
c=ENCODE(c,hex),c=concat("%",c),spez_char=APPEND(spez_char,c)
|
||||
ENDLOOP
|
||||
url_encoded=SUBSTITUTE(text,spez_char,0,0,spez_char)
|
||||
print "text: ", text
|
||||
PRINT "encoded: ", url_encoded
|
||||
Loading…
Add table
Add a link
Reference in a new issue