Hello,
Do you mean something like that:

Qt Code:
  1. cout<<"Author name ?\n";
  2. QTextCodec::setCodecForLocale(QTextCodec::codecForName("eucTR"));
  3. cin>>author;
  4. searchedAuthor=author;//searchedAuthor is a QString
To copy to clipboard, switch view to plain text mode 

I tried that; but the result didn't change.
And how will i know if "eucTR" exists or not?(is there a list of installed codecs?)

the "Tr" has nothing to do with Turkish here ;-)
yes you are right ...