- Модуль: webdav
- Путь к файлу: ~/bitrix/modules/webdav/classes/general.php
- Класс: CWebDavBase
- Вызов: CWebDavBase::_udecode
static function _udecode($t)
{
global $APPLICATION;
$t = rawurldecode($t); //urldecode($t);
$t = str_replace("%20", " ", $t);
if (preg_match("/^.{1}/su", $t) == 1 && SITE_CHARSET != "UTF-8")
{
$t = $APPLICATION->ConvertCharset($t, "UTF-8", SITE_CHARSET);
if (preg_match("/^.{1}/su", $t) == 1 ) // IE
$t = $APPLICATION->ConvertCharset($t, "UTF-8", SITE_CHARSET);
}
return $t;
}