voxel51/eta

Serializable should support `utf-8` encoding/decoding

brimoor opened this issue · 1 comments

The eta.core.serial.Serializable class should support optional utf-8 encoding/decoding of strings. By default, I suppose this should be turned on.

Currently one has to write something like this:

output = etas.json_to_str(output).encode("utf-8")
with open(output_fn, "wt") as f:
    f.write(output)

I second this