I'm having trouble replacing a single quote in a string, the purpose is to create part of an URL
For example : If I type in "Villeneuve d'ascq" I would want to have :
Villeneuve+d%27ascq", %27
being the ascii equivalent of (')
I tried using str_replace("'", ord("'"), string_name)
but it doesn't seem to work
Any help would be appreciated and feel free to ask for any more details