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

.
Replace command is not recognizing the accented character.
|
Source code
|
1
2
3
4
5
6
7
8
|
QFile file(fileName);
file.open(QIODevice::ReadOnly|QIODevice::Text);
QTextStream in(&file);
QString str = in.readAll().trimmed();
file.close();
const char tA[4] = {'á','â','ã','à'};
for (int j = 0; j < (int)sizeof(tA); j++) str.replace(tA[j],"a");
|
Does anyone know what command I have to use or add?
Thanks