-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
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)
aquadrehz
Metadata
Metadata
Assignees
Labels
No labels