zhaoyongjie commented on a change in pull request #13830:
URL: https://github.com/apache/superset/pull/13830#discussion_r605826009
##########
File path: superset/views/core.py
##########
@@ -2211,7 +2211,8 @@ def results_exec( # pylint:
disable=too-many-return-statements
obj = apply_display_max_row_limit(obj, rows)
return json_success(
- json.dumps(obj, default=utils.json_iso_dttm_ser, ignore_nan=True)
+ json.dumps(obj, default=utils.json_iso_dttm_ser, ignore_nan=True,
+ encoding=None)
Review comment:
If we don't specify the encoding type, I guess `json.dumps` might use
`ASCII` encoding, which might be a problem for Asian characters.
https://github.com/simplejson/simplejson/blob/8bef979ad8272cbc2903970f4b9992f603d50973/simplejson/encoder.py#L275-L302
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]