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.
Non podes atopar unha película ou serie? Inicia sesión para creala.
Queres valorar ou engadir o elemento a unha listaxe?
Non es membro?
Resposta de insideep
no 9 de xullo do 2016 ás 1:37PM
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!
Resposta de Travis Bell
no 12 de xullo do 2016 ás 9:45AM
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.
Resposta de insideep
no 13 de xullo do 2016 ás 11:42AM
Thanks @Travis, I will try it soon!