I created a text file in PHP stipulating an UTF-8 encoding:
<?php
// header('Content-Encoding: UTF-8');
header('Content-Type: text/csv; charset=utf-8');
header('Content-Disposition: attachment; filename="history.csv"');
...
$fp = fopen('php://output', 'wb');
fputcsv($fp, array_map('utf8_decode', array($row['item_type']))); // $row['item_type'] = "Ergänzung"
fclose($fp);
?>
Here are the results, when i open it on my S4:
If the cellular is configured in German:
ErgänzungIf the cellular is configured in French:
ErgänzungIf the cellular is configured in English:
Erg�zung
Strange. For me, even in English the smartphone should use the UTF-8 charset. This does not seem to be the case.