data-import icon indicating copy to clipboard operation
data-import copied to clipboard

When I import a csv that contain the character "ñ", it appears as �

Open aanciones opened this issue 8 years ago • 1 comments

Could yo help me. This is my code:

aanciones avatar Jan 08 '17 18:01 aanciones

Maybe, you could try

$encodingFrom = 'ISO-8859-1';
$encodingTo = 'UTF8';
$filepath = '/tmp/test.csv';

$reader = new CsvReader(new \SplFileObject('php://filter/read=convert.iconv.'. $encodingFrom .'%2F'. $encodingTo.'/resource='.$filepath));

aaa2000 avatar Jan 09 '17 14:01 aaa2000