Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Please Add setEncoding to CSV Writter #619

Closed
kerog opened this issue Jan 24, 2019 · 1 comment
Closed

Please Add setEncoding to CSV Writter #619

kerog opened this issue Jan 24, 2019 · 1 comment

Comments

@kerog
Copy link

kerog commented Jan 24, 2019

Hi, Could you add support to choose encoding of CSV writter.
I must export csv in WINDOWS-1250 encoding.

@kerog kerog closed this as completed Jan 24, 2019
@kerog kerog reopened this Jan 24, 2019
@adrilo
Copy link
Collaborator

adrilo commented Jan 25, 2019

Hi @kerog, you can pass data that's already encoded in WINDOWS-1250. Spout does not touch the data, simply writing whatever you pass to the file directly. Something you can do though is remove the UTF-8 BOM that's added at the beginning of the file. You can do so by setting the property on the writer: $writer->setShouldAddBOM(false);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants