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

garbled code in job setting - when create and set #45

Open
iTryIt opened this issue Jul 15, 2016 · 0 comments
Open

garbled code in job setting - when create and set #45

iTryIt opened this issue Jul 15, 2016 · 0 comments

Comments

@iTryIt
Copy link

iTryIt commented Jul 15, 2016

Sending configures in xml. I keep xml file in UTF8 encoding as usual. But seems that Jenkins refuse to decode xml in UTF8 without the header charset below.

public function createJob($jobname, $xmlConfiguration)
{
  /*
    ******
  */

  $headers = array('Content-Type: text/xml;charset=utf-8'); //Add encoding charset to header

  /*
    ******
  */
}

public function setJobConfig($jobname, $configuration)
{
  /*
    ******
  */

  $headers = array('Content-Type: text/xml;charset=utf-8'); //Add encoding charset to header

  /*
    ******
  */
}
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