• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/common.php
  • Класс: BitrixPullCommon
  • Вызов: Common::findInvalidUnicodeSymbols
static function findInvalidUnicodeSymbols(array $input, $currentPath = "")
{
	if(!defined("BX_UTF"))
	{
		return false;
	}

	foreach ($input as $k => $v)
	{
		if(is_string($input[$k]))
		{
			if(!mb_check_encoding($input[$k]))
			{
				return $currentPath . "/" . $k;
			}
		}
		else if (is_array($input[$k]))
		{
			$subResult = static::findInvalidUnicodeSymbols($input[$k], $currentPath . "/" . $k);
			if($subResult)
			{
				return $subResult;
			}
		}
	}

	return false;
}