Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when sending UTF-8 characters.
The `ensure_ascii` kwarg in `json.dumps()` must be `True` (the default) so that the subsequent UTF-8 encoding works correctly.
- Loading branch information
f4c2051
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous code is correct. Why does it crash? Do you use ujson?