• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/baseservicehandler.php
  • Класс: BitrixSalePaySystemBaseServiceHandler
  • Вызов: BaseServiceHandler::OnEndBufferContent
public function OnEndBufferContent(&$content)
{
	if (
		strpos($content, 'charset=') !== false
		&& strpos($content, "charset=".SITE_CHARSET) !== false
	)
	{
		header("Content-Type: text/html; charset=".BX_SALE_ENCODING);
		$content = TextEncoding::convertEncoding($content, SITE_CHARSET, BX_SALE_ENCODING);
		$content = str_replace("charset=".SITE_CHARSET, "charset=".BX_SALE_ENCODING, $content);
	}
}