title: php how to output arabic characters on windows using powershell
body: <p>I have the below PHP script </p>
  
  <pre><code>&lt;?php
  header('Content-Type: text/html; charset=utf-8');
  $file = "//192.168.10.206/wwwroot/SABIS CORPORATE/PrepList/Documents/41/1516 Level I Arabic Basic Questions and Answers T1 الأسلوب الخبري.pdf"; 
  echo $file; 
  ?&gt;
  </code></pre>
  
  <p>and the result is always</p>
  
  <pre><code>PS C:\Users\aaoun&gt; php -q c:\Users\aaoun\Desktop\Test-AAA.php
  //192.168.10.206/wwwroot/SABIS CORPORATE/PrepList/Documents/41/1516 Level I Arabic Basic Questions and Answers T1 ╪د┘╪ث
  ╪│┘┘ê╪ذ ╪د┘╪«╪ذ╪▒┘è.pdf PS C:\Users\aaoun&gt;
  </code></pre>
  
  <p>I tried <strong>UT8 encoding</strong></p>
  
  <pre><code>iconv("unicode", "utf-8", $file);    
  iconv("Latin1_General_CI_AS","utf-8",$file); 
  iconv("Arabic_CI_AS","utf-8",$file); 
  base64_encode($file); 
  utf8_encode($file);     
  base64_decode($file); 
  utf8_decode($file);  
  iconv('WINDOWS-1256', 'UTF-8', $file);   
  iconv('cp1256', 'UTF-8', $file);
  </code></pre>
  
  <p>Nothing seems to work, I keep getting wrong text I need to get the text to check if the file exists ...</p>