• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/zip.php
  • Класс: CZip
  • Вызов: CZip::_getfileSystemEncoding
private function _getfileSystemEncoding()
{
	$fileSystemEncoding = mb_strtolower(defined("BX_FILE_SYSTEM_ENCODING") ? BX_FILE_SYSTEM_ENCODING : "");

	if (empty($fileSystemEncoding))
	{
		if (mb_strtoupper(mb_substr(PHP_OS, 0, 3)) === "WIN")
		{
			$fileSystemEncoding = "windows-1251";
		}
		else
		{
			$fileSystemEncoding = "utf-8";
		}
	}

	return $fileSystemEncoding;
}