Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 20, 2021
1 parent 9580d33 commit ef0c45a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Http/Controllers/FailedJobsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Laravel\Horizon\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Laravel\Horizon\Contracts\JobRepository;
use Laravel\Horizon\Contracts\TagRepository;

Expand Down Expand Up @@ -115,6 +116,8 @@ protected function decode($job)
{
$job->payload = json_decode($job->payload);

$job->exception = mb_convert_encoding($job->exception, 'UTF-8', 'UTF-8');

$job->retried_by = collect(json_decode($job->retried_by))
->sortByDesc('retried_at')->values();

Expand Down

0 comments on commit ef0c45a

Please sign in to comment.