Jump to content

XENOTnet

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by XENOTnet

  1. <?php //RETURNS "–—–––———––—–—–––—–—–—––—––––———––––———––" $string1 = file_get_contents("https://api.abc.xyz/myScript/index.php/"); //Which should be the same as the first one. $string2 = "–—–––———––—–—–––—–—–—––—––––———––––———––"; file_put_contents("debug.txt", $string1."\n".$string2); ?> When I open the file I get the following output: –—–––———––—–—–––—–—–—––—––––———––––———–– —–—————–—–——–––—–——––—––————–——–—–—————–—–——–––—–——––—––————–——– On my website however I get this output: ���������������������������������������� –—–––———––—–—–––—–—–—––—––––———––––———–– Why do string1 and string2 output different chars? "What's the problem" you may ask. String1 (which comes from my api) can't be displayed on my page and String2 can. BUT String1 (which comes from my api) can be wrote to file correctly but String2 can't. Image here: http://image.prntscr.com/image/87228bf0bc8c4259a09a51245c52f9f7.png >>> How can I get String1 to display properly? <<<
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.