Skip to content

bulk_sync_to_db got UnicodeDecodeError when Chinese characters in dag code #18133

@lvjg

Description

@lvjg

Apache Airflow version

main (development)

Operating System

centos7

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

What happened

image

What you expected to happen

dagcode._get_code_from_file open fileloc use encoding=utf-8

How to reproduce

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions