9951 explained code solutions for 126 technologies


nginx-luaHow to do URL decode


server {
  location / {
    content_by_lua_block {
      ngx.say( ngx.unescape_uri('hi%20all') )
    }
  }
}ctrl + c
content_by_lua_block

nginx-lua module directive to specify block of Lua code

ngx.unescape_uri

decodes given string from URL-encoded form

hi%20all

sample string to decode

ngx.say

output given text to client