Skip to content

Encoding error on Windows when generating report #699

Description

@dalestee

We can reproduce a Windows encoding issue when generating the HTML report.

The export code writes the file using the platform default encoding, which raises:

UnicodeEncodeError: 'charmap' codec can't encode character ...

A minimal fix is to write the HTML explicitly as UTF-8 in generation.py:

with open(output_file, "w", encoding="utf-8") as file:
    file.write(body)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions