A
A
Aleksander9112018-04-06 15:23:18
1C-Bitrix
Aleksander911, 2018-04-06 15:23:18

How to fix sales_notes encoding?

Good day everyone.
The site works in UTF-8 encoding, edited yandex_run.php, added $sales_notes_value. In the generated file for Yandex upload, sales_notes has the form of hieroglyphs

<sales_notes>Предоплата. Наличный и безналичный расчет.</sales_notes>

Tell me how to fix this bug?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksander911, 2018-04-06
@Aleksander911

Understood.
Then we change the encoding

$sales_notes_value = iconv('UTF-8', 'CP1251', $sales_notes_value);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question