Quote Originally Posted by mattia View Post
to convert it i have to put my string into a QByteArray and send it?
If you use only QTcpSocket, you need QByteArray anyway. Try QString::toLatin1() or QString::toLocal8Bit().

Quote Originally Posted by mattia View Post
Can't i just have a QString with the text converted in ?
No, because QString isn't an array of bytes, but an array of QChars and QChars are Unicode characters.