06-25-2019, 03:24 PM
Hi Alessandro. Two things.
-1st, what is the source encoding (UTF8, ANSI, ASCII) ???.
-2nd, try another encoding to decode. Your VAR and strtofile are AnsiString.
Base64 := BytesToString(IDBytes, IndyTextEncoding_ANSI);
Base64 := BytesToString(IDBytes, IndyTextEncoding_ASCII);
etc.
-1st, what is the source encoding (UTF8, ANSI, ASCII) ???.
-2nd, try another encoding to decode. Your VAR and strtofile are AnsiString.
Base64 := BytesToString(IDBytes, IndyTextEncoding_ANSI);
Base64 := BytesToString(IDBytes, IndyTextEncoding_ASCII);
etc.

