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

修复创建,更新Job中文编码问题 | fix chinese code unintelligible error when create … #73

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

xueerfei
Copy link

when i use API update_job to update jenkins job, i find if i have chinese in config string ,the jenkins config.xml can't recognize correct chinese,but if i just update job by jenkins web,i will be work

So i guess it must be something wrong in http request, i try to use http request, and add header headers: { 'Content-Type': 'application/xml;charset=UTF-8' }
it works correct .

I look up the source code ,find the source code didn't add the charset type.

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.

1 participant