saving text into file creates weird diamond questionmarks

 

I'm writing to a file....  


int file = FileOpen(filedump, FILE_WRITE | FILE_TXT);


Then its the print line... 


after i copy this to a linux server ... I get this error when importing this into mysql... 

 

ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected. Query: '��I'.


When i open up the file in nano or vi, those questionmarks are not there.  But if I cat the file, they are... seems to be created from the mt5 program when it writes to the file?


any help would be appreciated ... 

 
Frank Bear: int file = FileOpen(filedump, FILE_WRITE | FILE_TXT);

You created a Unicode (2 bytes per character) text file, not an ANSI (one byte per character) text file as expected on *nix.

 
Thanks, do you know what i need to do in order to change what file mql prints?