diff --git a/translator_script.py b/translator_script.py
index 8e6b5cf74777cb52b765f5ab1257784d5d1416bf..50ef3c062ff2333721c840b4211bdbd447a87483 100644
--- a/translator_script.py
+++ b/translator_script.py
@@ -118,9 +118,9 @@ def split_into_chunks(input_string, chunk_size=240):
 
 def write_to_file(file_path, content):
     try:
-        with open(file_path, 'w') as file:
+        with open(file_path, 'w', encoding='utf-8') as file:
             file.write(content)
-        print("Successfully wrote to the file." + file_path)
+        print("Successfully wrote to the file: " + file_path)
     except Exception as e:
         print(f"An error occurred: {e}")