title: Php can't read file with Shift JIS encoding
body: <p>i got an error about read csv file with encoding Shift_JIS when running on server. i tried follow this code below:</p>
  
  <pre><code>function readFile($file)
  {
      setlocale(LC_ALL, 'ja_JP.sjis');
      $ret = array();
  
      $fp = fopen($file, 'r');
      while ($line = fgetcsv($fp)) {
          mb_convert_variables('utf-8', 'sjis-win', $line);
  
          $ret[] = $line;
      }
      fclose($fp);
  
      return $ret;
  }
  </code></pre>
  
  <p>When in localhost, i have no any problem, but when i running on server has no correct format.</p>
  
  <p>This is content of file running on localhost (XAMPP):</p>
  
  <p>Array</p>
  
  <p>(</p>
  
  <pre><code>[0] =&gt; Array
      (
          [0] =&gt; カテゴリID
          [1] =&gt; ブランドID
          [2] =&gt; サイズID
          [3] =&gt; カラーID
          [4] =&gt; 状態
          [5] =&gt; 商品名
          [6] =&gt; 価格（税込）
          [7] =&gt; 商品説明
          [8] =&gt; 在庫数
          [9] =&gt; 送料個別設定
          [10] =&gt; 公開状態
      )
  </code></pre>
  
  <p>)</p>
  
  <p>But running on server (centos):</p>
  
  <p>Array
  (</p>
  
  <pre><code>[0] =&gt; Array
      (
          [0] =&gt; JテゴリID
          [1] =&gt; uランドID
          [2] =&gt; TイズID
          [3] =&gt; JラーID
          [4] =&gt; 
          [5] =&gt; i名
          [6] =&gt; i（税込）
          [7] =&gt; i説明
          [8] =&gt; 
          [9] =&gt; 
          [10] =&gt; J状態
      )
  </code></pre>
  
  <p>)</p>
  
  <p>Please help me ! </p>