Skip to content

Environment variables with non-ASCII characters in .properties files display as garbled text in test reports #3240

@ChiufungLee

Description

@ChiufungLee

Describe the Bug

When environment variables containing non-ASCII characters (such as Chinese or Russian) are defined in configuration files like environment.properties, the generated Allure test reports display these values as garbled text instead of correctly showing the original characters.

This issue is related to the following existing issues:

#1244 - Environment variables with non-ASCII characters display as garbled
#2613 - Character encoding issues in configuration files

Steps to Reproduce

  1. Create an environment.properties file with non-ASCII characters.

  2. Place the file in your project's allure-results directory or configure it as per your Allure setup.

  3. Run test suite and generate the Allure report.

  4. Open the Allure report in your browser and Navigate to the "Environment" section, you can see garbled characters or replacement characters instead.

Expected Behaviour

All environment variables should display with their original characters correctly rendered, regardless of language.

Screenshots or Additional Context

environment.properties file
Image

Image

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-pytest

What version of Allure Integration you are using?

2.25.0

What version of Allure Report you are using?

2.25.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions