Problem solved, thanks to François and Eric. The problem came from StreamReader function: by default, chosen encoding format is set to UTF-8. We also discovered that data are not corrupted when imported in MEGA, but when the program reads the source file. StreamReader sr = new StreamReader(filetoimport); has to be replaced by: StreamReader sr = new StreamReader(filetoimport, Encoding.getEncoding(28591)); "28591" is the code corresponding to "Latin1_General_CI_AS". I really want to thank both of you for your availability.
... View more