Fix #2 caused by a StringToCharArray bug in MQL

This commit is contained in:
Ding Li
2017-05-27 10:22:18 +08:00
parent 3a231f12b8
commit a2c610956c
+1
View File
@@ -104,6 +104,7 @@ string StringFromUtf8(const uchar &utf8[])
//+------------------------------------------------------------------+
void StringToUtf8(const string str,uchar &utf8[],bool ending=true)
{
if(!ending && str=="") return;
int count=ending ? -1 : StringLen(str);
StringToCharArray(str,utf8,0,count,CP_UTF8);
}