From ca21999d5db32c3a670282e3bb3c9b811af34c50 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 19 Mar 2023 14:50:52 -0700 Subject: [PATCH] applets/wiktionary: fix UTF-8 issue --- applets/wiktionary.pl | 2 +- lib/PBot/VERSION.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applets/wiktionary.pl b/applets/wiktionary.pl index a9f4f9a6..a66964d5 100755 --- a/applets/wiktionary.pl +++ b/applets/wiktionary.pl @@ -85,7 +85,7 @@ $num //= 1; my $cache = Cache::FileCache->new({ namespace => 'wiktionary', default_expires_in => '1 week' }); -my $cache_id = "$term $lang"; +my $cache_id = encode('UTF-8', "$term $lang"); my $entries = $cache->get($cache_id); diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index c077dec1..c0a849e2 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4631, + BUILD_REVISION => 4632, BUILD_DATE => "2023-03-19", };