Skip to content

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

Open
xueerfei wants to merge 6 commits intojansepar:masterfrom
xueerfei:master
Open

修复创建,更新Job中文编码问题 | fix chinese code unintelligible error when create …#73
xueerfei wants to merge 6 commits intojansepar:masterfrom
xueerfei:master

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