Skip to content

Commit a2ec4c6

Browse files
authored
Open config with utf-8 (Azure#17310)
1 parent e634a2b commit a2ec4c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/azure-sdk-tools/packaging_tools/swaggertosdk/autorest_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def autorest_swagger_to_sdk_conf(readme, output_folder, config):
2626
)
2727
execute_simple_command(cmd_line.split())
2828
conf_path = Path(output_folder, "configuration.json")
29-
with conf_path.open() as fd:
29+
with conf_path.open(encoding="utf-8") as fd:
3030
conf_as_json = json.load(fd)
3131
swagger_to_sdk_conf = [c for c in conf_as_json.get("swagger-to-sdk", []) if c]
3232
return swagger_to_sdk_conf

0 commit comments

Comments
 (0)