[SR-Users] Handling special characters - KEMI lua redis_ndb

Muhammad Danish Moosa danishmoosa at gmail.com
Wed Jan 19 04:58:32 CET 2022


Hi Guys,

I am trying to do following code


 KSR.ndb_redis.redis_cmd("srvN", "SET var " .. testvar, "r");

it works fine but if testvar has special character like SPACE or % , it
does not work. For example when testvar="asdsada%Dasda"; it starts
considering %D as place holder and does not add key to redis (does not
raise error as well)

With Space I tried to use delimeters like "" or '' but none of them work.

For now I have got it working through , search and replace but thats not a
clean solution.

Any suggestions?

-- 
Muhammad Danish Moosa

" The core of mans' spirit comes from new experiences. "___ Christopher
McCandless
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220119/6b883a2a/attachment.htm>


More information about the sr-users mailing list