selik / xport

Python reader and writer for SAS XPORT data transport files.
MIT License
49 stars 24 forks source link

#75 Enable changing the text encoding #89

Closed selik closed 2 years ago

selik commented 2 years ago

This is a "beta" feature, and the interface is in flux. It's awkward to weave an encoding argument through every class and method, especially with the data and metadata using different text encodings. So, I chose the "practicality beats purity" axiom of the Zen of Python and created two global variables that configure the data and metadata text encodings, and a context manager to toggle them.