Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/URL-encoding/NewLISP/url-encoding.l
Normal file
6
Task/URL-encoding/NewLISP/url-encoding.l
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
;; simple encoder
|
||||
;; (source http://www.newlisp.org/index.cgi?page=Code_Snippets)
|
||||
(define (url-encode str)
|
||||
(replace {([^a-zA-Z0-9])} str (format "%%%2X" (char $1)) 0))
|
||||
|
||||
(url-encode "http://foo bar/")
|
||||
Loading…
Add table
Add a link
Reference in a new issue