Fileopen to get csv mql5 , displays no english text string

 

Hi ,  

I have some ea that opens  a csv after dowloading with a second ea .

With the  tags  FILE_CSV | FILE_ANSI | FILE_READ   ,  the txt string that is with Print () is not in english ,  

an example of the csv : 

eurusd   1.1216 

gpbjpy   146.79

audjpy   0.8951

with  the string displays , it gets this : 

㈢㠹㌬㔰ഢ∊㌱ⰲ㐱∶਍㌢ㄴ㌬㘷ഢ∊〲  

How to solve  this ? 

 
johntedd1216: How to solve  this ?
Fix the code that makes the file. Likely it's creating a FILE_BIN
 
whroeder1:
Fix the code that makes the file. Likely it's creating a FILE_BIN

The csv is got with a url webpage , 

we test and monitored  to use the available tags , but with FILE_ANSI , it gets only the first lines of the  docs  , does someone use  to get some double or int variables with fileopen and mql5 , with csv  ?  

 
Boubacar Tidiane Traore: The csv is got with a url webpage, we test and monitored to use the available tags, but with FILE_ANSI , it gets only the first lines of the  docs  , does someone use  to get some double or int variables with fileopen and mql5 , with csv  ?  
The CSV is probably in one of the UNICODE formats and not in ANSI. It is quite common for websites to use UTF-8 encoding, so verify what encoding is used for the CSV file.
 
whroeder1:
Fix the code that makes the file. Likely it's creating a FILE_BIN

It gets the  list of LH datas  perfectly ,

the codes : 

FILE_ANSI | FILE_CSV | FILE_BIN  ,  " , " , CP_UTF8 

Thanks 

 
Fernando Carreiro:
The CSV is probably in one of the UNICODE formats and not in ANSI. It is quite common for websites to use UTF-8 encoding, so verify what encoding is used for the CSV file.

It was possible to get the list of encoding , plus the additionnal ,   it could send with mql 5  .

  With a formal auto system ,  always get the details   with mql5 , to get the uploads with the  ea .  

 
Boubacar Tidiane Traore: FILE_ANSI | FILE_CSV | FILE_BIN  ,  " , " , CP_UTF
Either it is a text file (CSV) or it is a binary file. It can't be both! If text, try replacing the ansi with unicode or utf-8
 
whroeder1:
Either it is a text file (CSV) or it is a binary file. It can't be both! If text, try replacing the ansi with unicode or utf-8

No tags with FILE_CSV , only the ansi plus the BIN ,

it gets all the downloads perfectly ,

thanks   

 
Thanks
Reason: