My python program does not write the accents in the Spanish language

Viewed 62

this is my code

import pyautogui
import time

f = open('spambot\spam.txt', 'r')
time.sleep(5)  

for words in f:
    print(words)
    pyautogui.typewrite(words)
    pyautogui.press("enter")
    time.sleep(3)

the content of spam.txt is this

"Yo sé que no me te importó"

but this is what it prints

"Yo s que no te import"

0 Answers
Related