Skip to content

Commit

Permalink
Merge pull request #136 from fosslight/temp
Browse files Browse the repository at this point in the history
Bug fix to encode html result file
  • Loading branch information
bjk7119 authored Jan 30, 2023
2 parents 2290562 + 7692787 commit 842a87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_prechecker/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def write_result_html(result_file: str, exit_code: int, result_item: ResultItem,
output_dir = os.path.dirname(result_file)
Path(output_dir).mkdir(parents=True, exist_ok=True)
html_result = result_for_html(result_item, project, path_to_find)
with open(result_file, 'w') as f:
with open(result_file, 'w', encoding='utf-8') as f:
f.write(html_result)
success = True
except Exception as ex:
Expand Down

0 comments on commit 842a87e

Please sign in to comment.