I guess I was wrong. I just added this to the .mq5 file with UTF-8 encoding:
and after saving the file encoding changed to "UTF-16 LE BOM".
It seems to be MetaEditor's fault. I added Cyrillic characters and saved the file using Notepad++ and the encoding remained UTF-8.
Most likely, UTF-8 was without BOM, ME doesn't like it. At least it used to leave files in UTF-8 only if BOM was present. Other editors are smarter and work without BOM.
Most likely, UTF-8 was without BOM, ME doesn't like it. At least it used to leave files in UTF-8 only if BOM was present. Other editors are smarter and work without BOM.
As far as I can see now (beta 5593), MetaEditor is working with UTF-8 by default. It may add a BOM when you start to use non-ASCII characters.
But working with UTF-8 without BOM (and using characters which are non-ASCII) is working just fine.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I guess I was wrong. I just added this to the .mq5 file with UTF-8 encoding:
and after saving the file encoding changed to "UTF-16 LE BOM".
It seems to be MetaEditor's fault. I added Cyrillic characters and saved the file using Notepad++ and the encoding remained UTF-8.
Most likely, UTF-8 was without BOM, ME doesn't like it. At least it used to leave files in UTF-8 only if BOM was present. Other editors are smarter and work without BOM.
Most likely, UTF-8 was without BOM, ME doesn't like it. At least it used to leave files in UTF-8 only if BOM was present. Other editors are smarter and work without BOM.
As far as I can see now (beta 5593), MetaEditor is working with UTF-8 by default. It may add a BOM when you start to use non-ASCII characters.
But working with UTF-8 without BOM (and using characters which are non-ASCII) is working just fine.