Reviewed: https://review.openstack.org/165628 Committed: https://git.openstack.org/cgit/stackforge/python-jenkins/commit/?id=bfdfb5212d651abc900f001fee417bbc60243253 Submitter: Jenkins Branch: master
commit bfdfb5212d651abc900f001fee417bbc60243253 Author: Khai Do <[email protected]> Date: Tue Mar 17 16:36:06 2015 -0700 Add utf8 to headers Consolidate headers and set to utf8 when uploading configs to jenkins. Closes-Bug: #1421401 Change-Id: Ic0808c89cbefce0252b48797bf5f7c15fa3ee6d7 ** Changed in: python-jenkins Status: New => Fix Committed -- You received this bug notification because you are a member of Python Jenkins Developers, which is subscribed to Python Jenkins. https://bugs.launchpad.net/bugs/1421401 Title: xml job is uploaded with wrong encoding Status in Python API for Jenkins: Fix Committed Bug description: I have a XML job generated with jenkinks job builder. Job contains elements with non-latin characters for email plugin. This XML job has <?xml version="1.0" encoding="utf-8"?> header and any editor properly renders non-latin characters while viewing the XML file. It seems like python-jenkins uploads this job to jenkins without specifiying encoding: the job is created at jenkins, but non-latin characters are "mis-encoded". After specifying 'charset=utf-8' at lines like - headers = {'Content-Type': 'text/xml'} + headers = {'Content-Type': 'text/xml; charset=utf-8'} the problem is gone. Reproducible with version 0.4.4 To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1421401/+subscriptions -- Mailing list: https://launchpad.net/~python-jenkins-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~python-jenkins-developers More help : https://help.launchpad.net/ListHelp

