Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1017
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Could you please tell me the data<td colspan="8\" class=\"theDay\">\u0421\u0440\u0435\u0434\u0430, \u0410\u043f\u0440\u0435\u043b\u044c 20, 2016</td>\n UTF-8 format
I understand correctly, that russian needs to be converted to ANSI, i.e. to CP_ACP?
I do it like this string ttt =CharArrayToString(RESULT,0,CP_ACP); Nothing changes, just the data is stored in the string variable
Saving into a file under CP_ACP does not work either.
I am doing something wrong . The online decoder translates correctly. the result is: heDay\">Wednesday, April 20, 2016<\/td>\n
The question is how to do it in MQL?
Could you please tell me the data<td colspan="8\" class=\"theDay\">\u0421\u0440\u0435\u0434\u0430, \u0410\u043f\u0440\u0435\u043b\u044c 20, 2016</td>\n UTF-8 format
I understand correctly, that russian needs to be converted to ANSI, i.e. to CP_ACP?
I do it like this string ttt =CharArrayToString(RESULT,0,CP_ACP); Nothing changes, just the data is stored in the string variable
Saving into a file under CP_ACP does not work either.
I am doing something wrong . The output is heDay\">Wednesday, April 20, 2016<\/td>\n (I also used uurlencoded post filter when converting from UTF-8)
QUESTION how to do it in MQL?
https://forum.mql4.com/ru/67441
It hasn't worked yet... but it seems to be the right one, or is it wrong?
Can you please tell me how to convert the data as shown in the picture (cadabras into russian letters)? Where to dig in which direction(?
1 download taking into account the encoding
2 download page after request in browser, it displays fine
3 different functions converted from WinDLL or C++
4 now come that I will pick up for each letter a code and use it to decode (i.e. their own function)
OK, how do I write this "\u0430" in MQL code?
I get a warning 'u' - unrecognized character escape sequence
Thanks, already thought of different options from
1 download taking into account the encoding
2 download page after query in browser, it will display fine.
3 different functions to convert from WinDLL or C++
4 now I have come to pick up for each letter a code and use it to decode (i.e. own function)
OK, how do I write this "\u0430" in MQL code?
I get a 'u' - unrecognized character escape sequence warning
Here in PHP, following her principle of doing it in MQ
The idea is that you break down the string into characters and do a character-by-character replacement with the right character when it matches the array.
Here in PHP, following her principle of doing it in MQ
The idea is that you break the string into characters and do a character-by-character replacement with the correct character when it matches the array.
Thank you very much it will be faster, that's why I also decided to "lick" the principle special thanks for the character codes now I won't have to search for them.
StringGetChar()
StringGetChar()
Or is it wrong?
Thank you very much this will be faster, that's why I also decided to "lippy" special thanks for the character codes now I won't have to search for them.
I wrote to replace short names for characters, break lines into letters, and do the replacement.