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.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة insideep
بتاريخ يوليو 9, 2016 في 1:37 مساءا
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!
رد بواسطة Travis Bell
بتاريخ يوليو 12, 2016 في 9:45 صباحا
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.
رد بواسطة insideep
بتاريخ يوليو 13, 2016 في 11:42 صباحا
Thanks @Travis, I will try it soon!