📜  fgetcsv utf8_encode - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:33.391000             🧑  作者: Mango

代码示例1
$csvFile = fopen('file/path', "r");
fgetcsv($csvFile);
while(($row = fgetcsv($csvFile, 1000, ";")) !== FALSE){        
  for ($c=0; $c < count($row); $c++) {
    echo iconv( "Windows-1252", "UTF-8", $row[$c]);
  }
}
fclose($csvFile);