I try to read a CSV and echo the content. But the content displays the characters wrong.
Mäx Müstermänn -> Mäx Müstermänn
Encoding of the CSV file is UT
Try this:
First nameLast name'; while ($data = fgetcsv ($handle, 1000, ";")) { $data = array_map("utf8_encode", $data); //added $num = count ($data); for ($c=0; $c < $num; $c++) { // output data echo "$data[$c]"; } echo ""; } ?> 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题