fix some file extensions
This commit is contained in:
parent
68f8f3e56b
commit
f3a896c724
789 changed files with 91 additions and 62 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