Hi, I tried to send a search request but the movies that it cannot find are just the movies that contain an & in the title. I work in PHP and I tried to send the query string with the functions rawurlencode and urlencode. The results are the same. No results found. There's some solution? Thanks in advance.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de insideep
le 9 juillet 2016 à 13h37
For now I solved by myself in this way: str_replace("amp;", "and", str_replace("&", "",$query)) but is not an elegant solutions. I wait for any brilliant idea!
Réponse de Travis Bell
le 12 juillet 2016 à 09h45
Hi inside,
You should be encoding your query string. CGI or URI escaping should both work. A test string "Maya & Marty":
URI escaped
CGI escaped
Cheers.
Réponse de insideep
le 13 juillet 2016 à 11h42
Thanks @Travis, I will try it soon!