apache / apache/arrow

[C++][Python] Add an option to specify encoding in WriteOptions (CSV Writer)

Open
#36,459 3 comments 0 reactions 0 assignees View on GitHub
Component: Python Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

Apparently, there is no `encoding` option in the `pyarrow.csv.WriteOptions` class, so there seems to be no way to specify an encoding when writing a CSV file.

There might be cases where `UTF-8` is not wanted. The most obvious one to me is to write using `UTF-8-SIG` for full compatibility with Excel.

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.