[
https://issues.apache.org/jira/browse/AIRFLOW-6943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17046443#comment-17046443
]
ASF subversion and git services commented on AIRFLOW-6943:
----------------------------------------------------------
Commit 2f818f1fc33b9aa7b50409380a4a48dc2fd1b593 in airflow's branch
refs/heads/v1-10-test from Jarek Potiuk
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=2f818f1 ]
[AIRFLOW-6943] Fix utf-8 encodeed description in DAG in Python 2 (#7567)
Jinja expects either unicode strings or ascii-encoded byte strings
and fail if it receives utf8-encoded byte string. In case python
file is UTF8-encoded and description contains UTF-8 characters
displaying the dags uses Jinja template that fails in such case.
This bug workarounds it by attempting to decode the string with
utf-8 decoding and produce unicode instead.
> Dag view fails to render when DAG description contains utf-8 character
> ----------------------------------------------------------------------
>
> Key: AIRFLOW-6943
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6943
> Project: Apache Airflow
> Issue Type: Bug
> Components: ui
> Affects Versions: 1.10.9
> Reporter: Jarek Potiuk
> Priority: Major
>
> For python 2 airflow when DAG description contains UTF-8 character UI
> produces mushroom cloud with errors that it can't decode the string:
> For example if you put 🦅 in the description you get:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 0:
> ordinal not in range(128)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)