Unable to write the Spanish accent in Libreoffice, Kate, Kwrite

I returned to KDE Neon after some time to find I’m unable to write the accent in Spanish words neither in LibreOffice, Kate nor Kwrite. Is there any solution? I’ve tried some suggestions I found in Internet, but so far none has been of any use. Thanks.