title: How to convert QByteArray to QString?
body: <p>Here is HttpServer in JAVA, that sends russian string to Qt application:</p>
  
  <pre><code> public void handle(HttpExchange t) throws IOException {
          //Response from server in Russian
          String response = "Ответ от сервера на русском языке"; //"Response from server in Russian"
          t.sendResponseHeaders(200, response.length());
          OutputStream os = t.getResponseBody();
          //os.write(response.getBytes());
         //right now I am trying this code
        os.write(response.getBytes(Charset.forName("UTF-8"))); //and UTF-16
         //also I have tried this
          os.write(Charset.forName("UTF-16").encode(response).array());
  
          os.close();
      }
  </code></pre>
  
  <p>Application in Qt gets response from server (text in russian)</p>
  
  <pre><code> void MainWindow::Response(QNetworkReply *reply) {
      QByteArray data = reply-&gt;readAll();
     // Also I've tried this
     // QString dataString = (QString)reply-&gt;readAll();
     // QString dataLine = (QString)reply-&gt;readLine();
     // QString str=  QString::fromUtf8(data);
      qDebug() &lt;&lt; "data from server: " &lt;&lt; data;
       label-&gt;setText(str);
  } 
  </code></pre>
  
  <p>I just want to show normal string in console or in label component, but I have 
  empty string or array of bytes or sequence of question marks</p>
  
  <p>"\xCE\xF2\xE2\xE5\xF2 \xEE\xF2 \xF1\xE5\xF0\xE2\xE5\xF0\xE0 \xED\xE0 \xF0\xF3\xF1\xF1\xEA\xEE\xEC \xFF\xE7\xFB\xEA\xE5"</p>
  
  <p>How can I solve this problem with encoding and convert this array to QString and finally see the normal text ?</p>