Cannot use Percent (%) in a Lua pattern

Viewed 7090

I have this line in a Lua script that crash my software every time:

fmt_url_map = string.gsub( fmt_url_map, '%2F','/' )

I want to replace all occurrences of %2F occurrences in a text to /. If I remove the % , it doesn't crash.

What am I doing wrong ?

2 Answers
Related