You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
/*
******
*/
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: