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 的回复
于 2016 年 07 月 09 日 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 的回复
于 2016 年 07 月 12 日 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 的回复
于 2016 年 07 月 13 日 11:42上午
Thanks @Travis, I will try it soon!