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

Logging text always decoded as ISO-8859-1, regardless of what encoding was used. #842

Open
SamTheisens opened this issue May 15, 2023 · 0 comments

Comments

@SamTheisens
Copy link

SamTheisens commented May 15, 2023

ISSUE TYPE
  • Bug Report
Jenkinsapi VERSION

0.3.13

Jenkins VERSION

2.319.2

SUMMARY

Jenkins console text is decoded as ISO-8859-1 latin, regardless of how the text is encoded

EXPECTED RESULTS

UTF-8 encoded output is decoded as such. For example, a line of text containing emoji like the following, should be decoded using the encoding as specified in the HTTP response. Example log line:

  ❌ Outdated version: 96.1071 (latest: 0.0.16)  
ACTUAL RESULTS

The text is decoded as ISO-8859-1, resulting in garbled text:

  � Outdated version: 96.1071 (latest: 0.0.16)    
USEFUL INFORMATION
build: Build = job.get_build(build_number)
print(build.get_console())
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

No branches or pull requests

1 participant