Answer the question
In order to leave comments, you need to log in
How to specify encoding?
There is this code:
$strTmpOff.=
"<g:description>".
yandex_text2xml(TruncateText(
($arAcc["PREVIEW_TEXT_TYPE"]=="html"?
strip_tags(preg_replace_callback("'&[^;]*;'", "replace_special",
$arAcc["~PREVIEW_TEXT"])) : $arAcc["PREVIEW_TEXT"].'Товар
сертифицирован. Доставка по всей России.'),
3000), true).
"</g:description>\n";
$strTmpOff.= "<g:title>".htmlspecialchars($APPLICATION->
ConvertCharset($arAcc[NAME], LANG_CHARSET, 'utf-8'))."</g:title>\n";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question