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

ASF GitHub Bot commented on AIRFLOW-6505:
-----------------------------------------

mik-laj commented on pull request #7399: [AIRFLOW-6505] Let emoji encoded 
properly for json.dumps()
URL: https://github.com/apache/airflow/pull/7399
 
 
   
 
----------------------------------------------------------------
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]


> 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: 1.10.8
>
>
> 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