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

fixed unicode serialisation #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

toyg
Copy link

@toyg toyg commented Jan 18, 2014

unicode characters in arguments get mangled up. Tested in Python 3.3.3 only.

@toyg
Copy link
Author

toyg commented Jan 18, 2014

Works fine in 2.5+ as well. Should be safe to merge :)

@thedod
Copy link

thedod commented Mar 23, 2014

I was just about to pull request the same: 666d96a 😆.
Anyway, 👍

@luke-jr
Copy link
Contributor

luke-jr commented Apr 3, 2015

Hmm, this doesn't seem to actually fix the issue, just avoids the infinite loop. In particular, by casting to a float you're not ensuring the Decimal value gets encoded correctly (with 8 decimal places). I think fixing this properly will require subclassing JSONEncoder - no need to round the value, though, just get it included precisely.

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

Successfully merging this pull request may close these issues.

3 participants