Hi all,

simple question: how is it possible to retrieve the codec that a string is using?

I need it to encode the € char to Unicode for a QLineEdit (it appears as a square).
If there is a simpler way, I'm earing

I'm using this code (from docs)
Qt Code:
  1. QTextCodec *codec=QTextCodec::codecForName("UTF-8");
  2. lineEdit->setText(codec->toUnicode("€ "));
To copy to clipboard, switch view to plain text mode 
but results in a square.

Thank you in advance