[ 
https://issues.apache.org/jira/browse/AIRFLOW-6505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17036252#comment-17036252
 ] 

ASF subversion and git services commented on AIRFLOW-6505:
----------------------------------------------------------

Commit 2381c820c8aaeffc1c9b4ed47832038833400eb8 in airflow's branch 
refs/heads/master from [email protected]
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=2381c82 ]

[AIRFLOW-6505] Let emoji encoded properly for json.dumps() (#7399)



> Let emoji encoded properly for json.dumps() -- 
> BaseSQLToGoogleCloudStorageOperator
> ----------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-6505
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6505
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: 1.10.9
>         Environment: 1.10.8
>            Reporter: Damon Liao
>            Assignee: Damon Liao
>            Priority: Blocker
>             Fix For: 2.0.0
>
>
> Emoji can't be encoded properly when ` json.dumps()` and 'UTF-8', problem 
> fixed by adding parameter `ensure_ascii=False`. 
>  I've created a [PR|[https://github.com/apache/airflow/pull/7399]] to fix 
> this problem.
> In [line|#L175]] BaseSQLToGoogleCloudStorageOperator.
>  
> For example
> the emoji 🍻 encoded differentially when in use or not use  
> `ensure_ascii=False`.
> In Use (correct UTF-8 encode): "\xf0\x9f\x8d\xbb"
> Not Use (only 2 slash):"\\\ud83c\\\udf7b"
>  
> Ref: 
> [https://stackoverflow.com/questions/51183947/python-json-dumps-doesnt-encode-emojis-properly]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to