GravityKit / GravityExport-Lite

GravityExport Lite. Export all Gravity Forms entries to Excel (.xlsx) via a secret (shareable) url.
https://gfexcel.com
GNU General Public License v2.0
12 stars 8 forks source link

Add CSV character encoding #195

Closed doekenorg closed 3 months ago

doekenorg commented 3 months ago

This PR adds a hook to change the character encoding on a rendered CSV.

add_action( 'gfexcel_renderer_csv_output_encoding', function ( string $encoding ): string {
    return 'ISO-8859-1';
} );

I've use the gfexcel_ prefix to stay consistent instead of adding a new gk/gravityexport/... hook.