Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,10 +1,10 @@
|
|||
function encodeChar(chr)
|
||||
return string.format("%%%X",string.byte(chr))
|
||||
return string.format("%%%X",string.byte(chr))
|
||||
end
|
||||
|
||||
function encodeString(str)
|
||||
local output, t = string.gsub(str,"[^%w]",encodeChar)
|
||||
return output
|
||||
local output, t = string.gsub(str,"[^%w]",encodeChar)
|
||||
return output
|
||||
end
|
||||
|
||||
-- will print "http%3A%2F%2Ffoo%20bar%2F"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue