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

Roster commented on AIRFLOW-6505:
---------------------------------

Ran into this one too and came up with this Jira
[~Damon09273] i think you wanted to PR your code to Airflow... you PRed it to 
your own fork thus no one see it.

> 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.8
>         Environment: 1.10.7
>            Reporter: Damon Liao
>            Assignee: Damon Liao
>            Priority: Blocker
>             Fix For: 1.10.7
>
>
> 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/damon09273/airflow/pull/1]] to fix 
> this problem.
> In [line|#L175]] BaseSQLToGoogleCloudStorageOperato.
>  
> 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