O
O
orbilis2015-05-23 18:12:26
HTML
orbilis, 2015-05-23 18:12:26

Why does Bitrix display scribbles in the first characters of Cyrillic strings?

If everything is fine in the ftp code editor, then this is nonsense on the frontend:
e84e9a54d798466c8f7cfed7c9a37711.png
I edit in the visual editor (which is inconvenient), everything becomes normal on the frontend, but now it gives out nonsense in the ftp editor.
A month ago, such a problem got out with another page. Then it seemed to be decided by bringing the page file and the header / footer to a single encoding (ansi). At least I remember that I decided that this was the reason. This time, the reduction to one encoding did not solve the problem. The cache updated both Bitrix and the browser.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
orbilis, 2015-05-23
@orbilis

It seems that this time it was decided for sure - the file opened in ansi_x3.110-1983, although it was encoded in windows-1251. When manually changing the opening encoding, the file opened normally.
Why editors mistakenly determine the file encoding - the question remains open, but this is no longer critical.
/* Problem solved. Created a new file via ftp and copied the code into it.*/

A
Adamos, 2015-05-23
@Adamos

Bitrix pages are just php files, without any tricks. If the built-in editor works with them correctly, but the third-party one is weird, then the problem is with the third-party editor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question