Hi,
don't know if only I had the problem to import UTF-8 encoded csv files. I was not able to import, if unicode characters are used.
So I change the in controllers/import.php the function _load_csv as:
private function _load_csv($filename = '', $delimiter = ',')
{
$header = NULL;
if(($handle = fopen($filename, 'r')) !== FALSE)
{
while(($row = fgetcsv($handle, 2048, $delimiter)) !== FALSE)
{
if(!$header)
{
$header = $row;
}
else
{
$data = array_combine($header, $row);
$data = array_map("utf8_encode", $data);
$this->_row($data);
}
}
fclose($handle);
}
}
Just added the line $data = array_map("utf8_encode", $data);
Best,
Dirk
Hi,
don't know if only I had the problem to import UTF-8 encoded csv files. I was not able to import, if unicode characters are used. So I change the in controllers/import.php the function _load_csv as:
Just added the line $data = array_map("utf8_encode", $data);
Best, Dirk