Hi ,
I am using given test function
==============================
function url_encode(s)
s = string.gsub(s, "([^%w ])", function (c)
return string.format("%%%02X", string.byte(c))
end)
s = string.gsub(s, " ", "+")
return s
end
mystr='This is test string'
printf(url_encode(mystr))
==============================
Without any spl char it works , but as soon as I change mystr = 'This is @ test string' , string.byte() function fail because of spl. char.