Hi @shogathu,
I looked into it, and you’re right that there isn’t a hook or filter for this. I currently see no way to make this happen, so I’ll try to add a filter for you next week. I’ll let you know when this is released.
Kind regards,
Doeke
Hello Doeke,
thanks for take a look into this. So as we need it fast, we make it happened for us by change 1 line of code while creating the file. This make the work for us and we will wait for an update.
gf-entries-in-excel/build/vendor_prefixed/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Csv.php:131
we added
$cellsArray[0] = mb_convert_encoding($cellsArray[0],’ISO-8859-1′ );
Best regards
Shogathu
Hi @shogathu,
I just wanted to let you know that we’ve released 2.3.0 of GravityExport Lite; which now includes a gfexcel_renderer_csv_output_encoding
hook to update the character encoding for the CSV output.
Something along these lines should do the same for you:
add_action( 'gfexcel_renderer_csv_output_encoding', function ( string $encoding ): string {
return 'ISO-8859-1';
} );
Hope this helps!
Kind regards,
Doeke
Hi @doekenorg
thanks for the filter, that helps a lot
Best regards
shogathu