diff --git a/lib/util/help.php b/lib/util/help.php index a066cdce..8cedf647 100644 --- a/lib/util/help.php +++ b/lib/util/help.php @@ -19,7 +19,8 @@ public static function get(string $course, string $lesson): string protected static function convertFrom1251Possible(string $text): string { $isMarketplaceInstallation = (IV_EDU_MODULE_DIR == '/bitrix/modules/intervolga.edu'); - if ($isMarketplaceInstallation) + + if ($isMarketplaceInstallation && mb_detect_encoding($text) !== 'UTF-8') { $text = iconv('cp1251', 'UTF8', $text); }