diff --git a/src/poetry/utils/env/script_strings.py b/src/poetry/utils/env/script_strings.py index 246649867f3..9bfb03efe77 100644 --- a/src/poetry/utils/env/script_strings.py +++ b/src/poetry/utils/env/script_strings.py @@ -1,9 +1,12 @@ from __future__ import annotations +import locale + import packaging.tags -GET_SYS_TAGS = f""" +GET_SYS_TAGS = f"""\ +# encoding: {locale.getpreferredencoding(False)} import importlib.util import json import sys