I have this url which I need to pass to the browser and would like to encode it. However I have numbers in the url string which also gets converted and thus causes issues.
Here is my string.
"http://domain.com/?w=132&h=132&zc=1&q=90&a=c"
And if i use htmlspecialchars, it would convert both 132 to 100 which is wrong. How to prevent that?
UPDATE: perhaps I should mention that my string looks like that because I am using timthumb script.
Also I am not even sure if I need to encode anything? or is the URL i provided safe?