From ec9ef253ba8e0d86376641e6bcb469011e8b002b Mon Sep 17 00:00:00 2001 From: Stefan Adams Date: Sun, 2 Jul 2023 22:02:12 -0500 Subject: [PATCH] encode UTF-8 YAML::XS::Dump Is this an appropriate thing to do? I have notes with utf8 and they don't show up right in the Admin page, but adding this make it show up right. Is there another way to get the notes to render UTF-8 correctly? --- lib/Minion.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Minion.pm b/lib/Minion.pm index 4abb955..521c9bc 100644 --- a/lib/Minion.pm +++ b/lib/Minion.pm @@ -154,7 +154,7 @@ sub _delegate { return $self; } -sub _dump { local $YAML::XS::Boolean = 'JSON::PP'; Dump(@_) } +sub _dump { local $YAML::XS::Boolean = 'JSON::PP'; Mojo::Util::decode 'UTF-8', Dump(@_) } sub _iterator { my ($self, $jobs, $options) = (shift, shift, shift // {});