Hello,
I know that it is not such an important question, but:
this simple piece of code should print as output the "white heart suit" ♡ (hex code 2661);
What Font do you think that MT5 is using ?
I don't know if it is only a font problem, in fact if I slightly change the code in this way:
void OnStart() { string test=""; StringSetCharacter(test,0,0x2661); Print(test); StringSetCharacter(test,1,0x2662); Print(test); }
Then I get the correct symbol in the second print output.
I don't know if it is only a font problem, in fact if I slightly change the code in this way:
Mmmmm, this might be a bug, according to the Documentation . . . "If pos is equal to string length, the specified symbol is added at the string end, and the length is enlarged by one."
The reason I asked about character set is when I look at Arial in charmap I don't find the white heart suit at 0x2661
I don't know if it is only a font problem, in fact if I slightly change the code in this way:
Then I get the correct symbol in the second print output.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I know that it is not such an important question, but:
this simple piece of code should print as output the "white heart suit" ♡ (hex code 2661);
Instead what I get is the following displayed output: