Laravel-excel: [QUESTION] Encoding problem only for CSV

Created on 25 Jul 2019  路  5Comments  路  Source: Maatwebsite/Laravel-Excel

Versions

  • PHP version: 7.2.14
  • Laravel version: Laravel Framework 5.6.39
  • Package version: 3.1

Description

Hi, I have an encoding problem when I'm exporting a CSV file. Everything works fine in XLS and PDF formats.
I tried every single answer to this question with no luck.
Example of encoding problem : "Biblioth脙篓que 7899" instead of "Biblioth猫que 7899"

Any help would be great !

Thanks for your great plugin tho :)

question

Most helpful comment

@hAz4rd0uS why not post the solution?

All 5 comments

Have you tried setting use_bom to true in the config (https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/config/excel.php#L39) ? That's what PhpSpreadsheet suggests here: https://phpspreadsheet.readthedocs.io/en/latest/topics/reading-and-writing-to-file/#writing-utf-8-csv-files

Yes I tried this, but I fixed the issue another way. Thanks for your help.

Closing as issue seems to be fixed.

@hAz4rd0uS how have you fixed?

@hAz4rd0uS why not post the solution?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lszanto picture lszanto  路  38Comments

MLouis picture MLouis  路  21Comments

vladoa picture vladoa  路  19Comments

adnandogar picture adnandogar  路  32Comments

adnandogar picture adnandogar  路  34Comments