Skip to content

Fix: The report is saved without following the UTF-8 encoding #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dongfangtianyu
Copy link

HTML specifies the page charset="utf-8", but the file was not actually save according to utf-8

How to reproduce

a case

def test_abc():
    print("这是UTF-8内容") 

Report content

image

Cause analysis

This line of code declares that the HTML content is displayed in UTF-8, but in fact, the HTML file is not saved in UTF-8.

<meta charset="utf-8"/>

To put it simply, the encoding of the file content is unknown, but it is emphasized to display according to UTF-8

#224

@BeyondEvil
Copy link
Contributor

Mind testing if 4.0.0rc1 solves your issue?

@BeyondEvil
Copy link
Contributor

v4 seems to handle this correctly.

@BeyondEvil BeyondEvil closed this Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants