It can't show normal for comments using Double-Byte Character Sets, e.g. Asia Language charactors, in MetaEditor.
To make matters worse, all code lines end with comment include asia language charactor will be lost after the mq file been compiled.
Does Asia language characters remain in the source code when you save the file without compiling?
Does Asia language characters remain in the source code when you save the file without compiling?
My system is Windows 7 64bits, install local language is chinese simple,
I had download some source code with comment write in russia, it also cause compile error and lost the code lines.
My system is Windows 7 64bits, install local language is chinese simple,
I had download some source code with comment write in russia, it also cause compile error and lost the code lines.
MetaTrader 5 is Unicode from the first version. Did you use latest build of MetaTrader 5? Could you please attach file which cause lost of lines while compiling.
MetaTrader 5 is Unicode from the first version. Did you use latest build of MetaTrader 5? Could you please attach file which cause lost of lines while compiling.
I am sure it is the latest version:
metaeditor.exe 5.0.0.213
modify time: 2009/11/20 22:34:21
size: 2,235,275 bytes
I upload a mq5 script file with code comment use chinese charactors, you could test to edit and save it.
In fact it will remove the code line has chinese strings after save to disk, but it still show the old content,
untill compiling over, it will refresh to show the true new saved content.
Thank you, we found the bug, fix will be available in the next build of MetaEditor.
hi, I have check the last update release, "5.0 Build 227, (26 Nov 2009)", the metaedit will save file ok for souce code with chinese chars,
but there is two problem exist.
1. string length not get right, when press END key on a source line has DBCS chars, cursor could not stay at the right end line position.
2. the cursor is still can stay half length postion of an chinese charactor, and break the DBCS char into two part.
e.g. if the word "CH" is a single chinese char, when the edit cursor move through the word from left to right,
one time it stay before "CH" and next time it should jump to after "CH", and should never stay in the middle position between "C" and "H".
I guess somewhere use char length function is still not unicode compatible, the same problem is also exist in the current MT4 version.
However, in MT4 MetaEdit it has used correct length function to support unicode string,
but in neither MT4 nor MT5 MetaEdit could get correct length for unicode char.
Build 228 (07 Dec 2009 ): MetaEdit, input chars in DBCS charset :
* move cursor, it still can stay in half of a DBCS char
* calc line length:
e.g. a source code:
//string str=".....(DBCS)......";
if press END key, the cursor will stay before the last double quotes, not behind the last semicolon.
for another source code:
string str="...(DBCS)...";
the last semicolon is not show in the end, but in the middle position of the line;
press END key, the cursor will move to the posion before the last double quotes.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
To make matters worse, all code lines end with comment include asia language charactor will be lost after the mq file been compiled.