PHP get url with special characters without urlencode:ing them! -


I have to get file_get_contents a URL that looks like this:

The problem is that this request (Can not post full link, sorry): ... wapedia.mobi/sv/Gr%C3%B6t, which you can see is urlencoded, that page gives me no results.

How can I do this? According to L, you must specifically specify the URL in special characters:

This means that there should be no special encoding to themselves in the ceremony. Most likely that your URL is being encoded before function is being passed, so first pass it through urldecode and see if it happens.

Edit: You are saying that the encoding is going wrong again, the PHP manual specifically tells you before you go to file_get_contents URL needs to be encoded. Try to encode the URL, then send it to the function.

  $ url = urlencode ($ url); File_get_contents ($ url);  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -