title: How to get correct QString from "\u0000"?
body: <p>Sometimes I receive QString with value "\u0000" and I want to check if the received string equals to "\u0000".
  But when I try:</p>
  
  <pre><code>qDebug() &lt;&lt; QString("\u0000") &lt;&lt; QString::fromUtf8("\u0000");
  </code></pre>
  
  <p>I get output: <code>"\u0001"</code> <code>"\u0001"</code></p>
  
  <p>So as a result I can not compare the strings. I see that initially this string was created using <code>snprintf</code> from byte to get char* and then created std::string and QString from std::string, but I can't reproduce it so far actually. But I feel like this is a workaround, but not the easy way to do it.</p>
  
  <p>How do I create QString with value <code>\u0000</code> using QString API and why <code>QString("\u0000")</code> results in value "\u0001"?</p>