Skip to content
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

Incorrect displaying of cyrillic symbols inside scenario steps (API responses) #2661

Open
1 task done
omonast opened this issue Aug 2, 2024 · 3 comments
Open
1 task done
Assignees
Labels
triage type:bug Something isn't working

Comments

@omonast
Copy link

omonast commented Aug 2, 2024

Describe the Bug

When using the Allure plugin for Azure DevOps, in the case when the API step responses contain Cyrillic characters, as well as letters of the Azerbaijani alphabet, the plugin displays the characters incorrectly (does not recognize them). At the same time, the names of the scripts that contain Cyrillic characters, as well as letters of the Azerbaijani alphabet are displayed correctly.
Local run and report generating works just fine.
Raw job log also displays chars correctly.

Steps to Reproduce

  1. Allure plugin is integrated into Azure DevOps.
  2. Run the pipeline, which contains API scripts that expect a response that contains Cyrillic characters or letters of the Azerbaijani alphabet.
  3. Go to the results of the run.

Expected Behaviour

The characters in the response must be recognized and displayed correctly.

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

Allure AzureDevops

What version of Allure Integration you are using?

2.26.0

What version of Allure Report you are using?

2.26.0

Code of Conduct

  • I agree to follow this project's Code of Conduct
@omonast omonast added triage type:bug Something isn't working labels Aug 2, 2024
@epszaw
Copy link
Member

epszaw commented Aug 2, 2024

Hey, @omonast! Could you please attach a screenshot to see how does the problem look like?

@epszaw epszaw self-assigned this Aug 2, 2024
@GooDer
Copy link

GooDer commented Dec 20, 2024

Hi, I believe I encountered same or similar problem. I have some rest assured API test which are logging to allure report responses via attachment html.

Report itself is correctly created in UTF-8 html, attachment html file are correctly created in UTF-8 encoding, but embedding of html attachment in iframe element is missing this UTF-8 encoding and thus corrupting accent characers.

What should be there I think is this (src part with charset set)

`

<iframe class="attachment__iframe" src="data:text/html;charset=utf-8;base64,....... `

Then it displays correctly in my browser.

image
image

@GooDer
Copy link

GooDer commented Dec 20, 2024

I guess it is this part of the code:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants