Forum Moderators: coopster
I'm using PHP to open a .csv file.
The problem is that when I use this code:
$row = 1;
$handle = fopen("$csv", "r");
while (($data = fgetcsv($handle, 1000, ","))!== FALSE) {
$num = count($data);
echo "<p> $num fields in line $row: <br /></p>\n";
$row++;
for ($c=0; $c < $num; $c++) {
echo $data[$c] . "<br />\n";
}
}
fclose($handle);
exit;
There's a question mark in between every letter in the csv returned. This is in firefox. IE shows a space in between.
I think it's something to do with the format of the CSV being in Unicode, but it's a little tricky for me.
Any help very much appreciated.
Tom
I think it's something to do with the format of the CSV being in Unicode