Skip to content

Commit

Permalink
Open config with utf-8 (Azure#17310)
Browse files Browse the repository at this point in the history
  • Loading branch information
00Kai0 authored Mar 12, 2021
1 parent e634a2b commit a2ec4c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def autorest_swagger_to_sdk_conf(readme, output_folder, config):
)
execute_simple_command(cmd_line.split())
conf_path = Path(output_folder, "configuration.json")
with conf_path.open() as fd:
with conf_path.open(encoding="utf-8") as fd:
conf_as_json = json.load(fd)
swagger_to_sdk_conf = [c for c in conf_as_json.get("swagger-to-sdk", []) if c]
return swagger_to_sdk_conf
Expand Down

0 comments on commit a2ec4c6

Please sign in to comment.