From ff616d547e36052de75c0fb3de833449bc52b01f Mon Sep 17 00:00:00 2001 From: AmirhosseinDotZip Date: Sat, 27 Sep 2025 19:42:13 +0330 Subject: [PATCH] add utf-8d encryption errors when using the telegram app with special chars in the username --- log_decryptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log_decryptor.py b/log_decryptor.py index 4b5ec25..c5f85a8 100644 --- a/log_decryptor.py +++ b/log_decryptor.py @@ -82,7 +82,7 @@ def decrypt_many(encrypted_log, private_key, passphrase=None): # save decrypted log: new_filename = ".".join(encrypted_log_filename.split(".")[:-1]) + "_decrypted.txt" -with open(new_filename, "w") as f: +with open(new_filename, "w", encoding='utf-8') as f: f.write(decrypted_log) del decrypted_log