This is the code:
cerr << "Cannot open file" << home16 << " for writing. The reason: "
<< qPrintable(file.errorString()) << endl;
cout << "Try again."; system("echo "" > /home/$USER/.config/WallpaperChanger/Checks/text_to_buton");
}
out << realpath;
file.close();
QFile file(home16);
if (!file.open(QIODevice::WriteOnly)) {
cerr << "Cannot open file" << home16 << " for writing. The reason: "
<< qPrintable(file.errorString()) << endl;
cout << "Try again."; system("echo "" > /home/$USER/.config/WallpaperChanger/Checks/text_to_buton");
}
QTextStream out(&file);
out << realpath;
file.close();
To copy to clipboard, switch view to plain text mode
where `home16` is a file's path and `realpath` is a char* which contains greek characters, How will i write this character to the file `home16` without the greek characters to turn to "chinese"? Thx in advance!
Bookmarks