From 6cc82d659537cb6e6581a39031cf301a2499f690 Mon Sep 17 00:00:00 2001 From: Shawn Bulen Date: Sun, 15 Nov 2026 07:25:21 -0800 Subject: [PATCH] Fix upgrader charset_detected lookup Signed-off-by: Shawn Bulen --- other/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/upgrade.php b/other/upgrade.php index 571aeb8603..d175431f76 100644 --- a/other/upgrade.php +++ b/other/upgrade.php @@ -3180,7 +3180,7 @@ function ConvertUtf8() ); // Default to ISO-8859-1 unless we detected another supported charset - $upcontext['charset_detected'] = (isset($lang_charsets[$language]) && isset($charsets[strtr(strtolower($upcontext['charset_detected'] ?? $txt['lang_character_set']), array('utf' => 'UTF', 'iso' => 'ISO'))])) ? $lang_charsets[$language] : 'ISO-8859-1'; + $upcontext['charset_detected'] = (isset($lang_charsets[$language]) && isset($charsets[$lang_charsets[$language]])) ? $lang_charsets[$language] : 'ISO-8859-1'; $upcontext['charset_list'] = array_keys($charsets);