PHP - what is character encoding to create new folder and files write in Arabic with Windows Server 2012 R2

607 views Asked by At

I have problem when create new folder or upload new file in php with arabic language in windows server 2012 R2 but it work correctly in windows client (7,8)

This is the code

<?php
 $new_path1="Archiving/صادر";
          //when use this both lines folder create like image below 
         //$new_path=iconv('UTF-8', 'ISO-8859-6', $new_path1);
          $new_path = iconv('UTF-8', 'windows-1256', $new_path1);       
         mkdir($new_path, 0700);

 ?>

enter image description here

0

There are 0 answers