From 8a52b0c387a3bfa9b6cc24da289142308af649eb Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sun, 8 Feb 2015 20:55:43 +0100 Subject: [PATCH] baculum: Fix show job log with national characters --- gui/baculum/protected/Pages/API/JobLog.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/baculum/protected/Pages/API/JobLog.php b/gui/baculum/protected/Pages/API/JobLog.php index b36efebd4f..ba4ccbad75 100644 --- a/gui/baculum/protected/Pages/API/JobLog.php +++ b/gui/baculum/protected/Pages/API/JobLog.php @@ -23,7 +23,8 @@ class JobLog extends BaculumAPI { $job = $this->getModule('job')->getJobById($jobid); if(!is_null($job)) { $log = $this->getModule('joblog')->getLogByJobId($job->jobid); - $this->output = $log; + // Output may contain national characters. + $this->output = array_map('utf8_encode', $log); $this->error = JobError::ERROR_NO_ERRORS; } else { $this->output = JobError::MSG_ERROR_JOB_DOES_NOT_EXISTS; @@ -32,4 +33,4 @@ class JobLog extends BaculumAPI { } } -?> \ No newline at end of file +?> -- 2.39.5