Читать подробнее...
$f = iconv('UTF-8', 'windows-1251', $_GET['text']);
<script> BX.onCustomEvent('OnBasketChange'); // Обновляем корзину </script>