You can use this to convert strings to and from unicode:
http://mqlmagazine.com/mql-programming/dll-hell-mql5-edition-unicode-vs-ansi
- mqlmagazine.com
I was referring to MT5 File menu => Save... submenu
If we have only digits in the exported CSV file, it doesn't make sense to save it in unicode format. Double dimension of the file also.
Do you suggest to make my self a script to save a chart as a csv, in the way I want?
---
GoD2.0 Thank you for the link. It's a very useful library in some scenarios.
I wasn't aware of the site also, thanks for it too :)
I dropped this issue, but now I'm confronted with it again.
What byte order mask is there when we save a chart as unicode?
And when I say save, I mean File menu -> Save... submenu
Can there be an option to save to ansi / ascii csv file?
I'm still mot being able to convert automatically this type of unicode file into ansi, programatically.
I've succeeded in the end with python
Here's the code for anyone who would need/like it:
def utf2ascii(fnameutf,fnameascii): futf = open(fnameutf,'r') fascii = open(fnameascii,'w') for line in futf: lineascii = line.strip() lineascii = string.translate(line,None,'\xff\xfe\x00') fascii.write(lineascii) fascii.close() futf.close()
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
who uses unicode with only digits?
is there anyone who uses this unicode style in financial data? client or developer?
at least, we would be able to select the type of file to export,
not being forced to export in a format which most of us cannot use directly
can someone please shed some light on this decisions for unicode ?
and can you please consider at least exporting choices of both ansi and unicode?
Please?