when I copy a QString with spanish words then I get difficulties with some letters:

As example, french is ok.
input: Il aura bientôt réglé ce poste.
output: Il aura bientôt réglé ce poste.

but spanish, not.
input: Su anulación llegó demasiado tarde.
output: Su anulaci�n lleg� demasiado tarde.

the code that I use is:

QStringList word = oneLine.split('#');

for (int i = 1; i < word.size(); ++i)
{
temp =word.at(i);
if(!temp.isEmpty())
output += temp+ '\n';
}

How I can copy the words correctly?
My os is kubuntu 18.04 and Qt 5.11, standard utf8
Thanks