This is the code:
Qt Code:
  1. QFile file(home16);
  2. if (!file.open(QIODevice::WriteOnly)) {
  3. cerr << "Cannot open file" << home16 << " for writing. The reason: "
  4. << qPrintable(file.errorString()) << endl;
  5. cout << "Try again."; system("echo "" > /home/$USER/.config/WallpaperChanger/Checks/text_to_buton");
  6. }
  7. QTextStream out(&file);
  8. out << realpath;
  9. 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!