Laravel-excel: Change encoding to ASCII for datev export

Created on 28 Sep 2020  路  4Comments  路  Source: Maatwebsite/Laravel-Excel

I would like to export the data for Datev. Datev is CSV with semicolon as separator and encoded in ASCII.

How can I change the encoding to ASCII for an export?

question

All 4 comments

Have you tried configuring the csv: https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/config/excel.php#L113

Also please next time fill in the issue template.

I set input_encoding to ANSI, clean the cache, but the exported file is in UTF-8

I believe the way PhpSpreadsheet suggests it is by calling mb_convert_encoding yourself on the csv content. You probably have to enable BOM as well (https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/config/excel.php#L38)

I just got the info that Datev supports UTF-8 since last year, but I will have a look at it. Thanks for the quick help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhghazaliakbar picture muhghazaliakbar  路  3Comments

rossjcooper picture rossjcooper  路  3Comments

lucatamtam picture lucatamtam  路  3Comments

wwendorf picture wwendorf  路  3Comments

ellej16 picture ellej16  路  3Comments