Hello everyone.

I migrated my files (.txt) from Windows (ISO-8859) to Linux (UTF-8).

Replace command is not recognizing the accented character.

Qt Code:
  1. QFile file(fileName);
  2. file.open(QIODevice::ReadOnly|QIODevice::Text);
  3. QTextStream in(&file);
  4. QString str = in.readAll().trimmed();
  5. file.close();
  6.  
  7. const char tA[4] = {'á','â','ã','à '};
  8. for (int j = 0; j < (int)sizeof(tA); j++) str.replace(tA[j],"a");
To copy to clipboard, switch view to plain text mode 

Does anyone know what command I have to use or add?

Thanks!