GitHub user Narendra-Neerukonda added a comment to the discussion: bulk_sync_to_db got UnicodeDecodeError when Chinese characters in dag code
I looked into the source code where it's loading dags from files. It's using importlib at airflow.models.dagbag.DagBag:_load_modules_from_file/_load_modules_from_zip, called from airflow.models.dagbag.DagBag:process_file I'm not aware of the encoding importlib is using internally. But, in the case of this specific issue, user's dag was loaded properly problem faced was to only display the code in the UI.(so assuming it's using utf-8/something-compatible internally referring: [PEP-3120](https://www.python.org/dev/peps/pep-3120/) Please let me know if there's any other location in codebase to be looked into. GitHub link: https://github.com/apache/airflow/discussions/63175#discussioncomment-16050773 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
