Skip to content

Possibility to set encoding while loading CSV file #18

@JockeJarre

Description

@JockeJarre

In different languages it might be needed to store external data in other encodings than the OS default.
So it would be very convenient to be able to set the encoding while loading and saving CSV files.
Python 3 built in function "open" has the parameters already, so the parameters "just" has to be fed through to the call.

For Python 2, it far more complicated, the io.open is more or less the same as in Python 3, but the csv library in Python 2 does not support unicode at all. So if Python 2 is needed, the file would have to be opened in binary mode and processed or decoded while reading. There exists a replacement csv library for python 2 solving this though. (https://github.com/jdunck/python-unicodecsv)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions