Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializable should support utf-8 encoding/decoding #172

Open
brimoor opened this issue Dec 6, 2018 · 1 comment
Open

Serializable should support utf-8 encoding/decoding #172

brimoor opened this issue Dec 6, 2018 · 1 comment
Labels
enhancement Code enhancement

Comments

@brimoor
Copy link
Contributor

brimoor commented Dec 6, 2018

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)
@brimoor brimoor added the enhancement Code enhancement label Dec 6, 2018
@milosacimovic
Copy link

I second this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Code enhancement
Projects
None yet
Development

No branches or pull requests

2 participants