Skip to content

Commit 7692787

Browse files
committed
Bug fix to encode html result file
1 parent 0a78400 commit 7692787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_prechecker/_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def write_result_html(result_file: str, exit_code: int, result_item: ResultItem,
163163
output_dir = os.path.dirname(result_file)
164164
Path(output_dir).mkdir(parents=True, exist_ok=True)
165165
html_result = result_for_html(result_item, project, path_to_find)
166-
with open(result_file, 'w') as f:
166+
with open(result_file, 'w', encoding='utf-8') as f:
167167
f.write(html_result)
168168
success = True
169169
except Exception as ex:

0 commit comments

Comments
 (0)