string.gsub doesn't accept "%" why?

I don’t know why, every letter and number works fine but when I use “%” it becomes an error

here is my code :

string.gsub("Hi My Name Is "," ","%")

this doesn’t work and also this

string.gsub("Hi My Name Is "," ","%20")

But when I use this it works:

string.gsub("Hi My Name Is "," ","20")

It works.

If you want traceback here we go

Runtime error /X/X.lua:62: invalid capture index stack traceback: [C]: ? [C]: in function 'gsub' /X/X.lua:62: in function 'loadImages' /X/X.lua:335: in function 'SaveDataNews' /X/X.lua:353: in function \</X/X.lua:342\>

Thanks in advance

Nevermind found a solution

I suspect the solution was to use “%%”, but please post the solution for people who might find this thread in the future.

Thanks

Rob

Nevermind found a solution

I suspect the solution was to use “%%”, but please post the solution for people who might find this thread in the future.

Thanks

Rob