title: C++: Qt 5.3 fails to display UTF-8 character
body: <p>I am trying to display a unicode character (Euro sign) on a button using Qt and C++ in Visual Studio 2013. I tried the following code:</p>
  
  <pre><code>_rotateLeftButton-&gt;setText("\u20AC");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>_rotateLeftButton-&gt;setText("€");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>_rotateLeftButton-&gt;setText(QString::fromUtf8("\u20AC"));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>_rotateLeftButton-&gt;setText(QString::fromUtf8("€"));
  </code></pre>
  
  <p>However, all of those lines result in the following:</p>
  
  <p><img src="https://i.stack.imgur.com/JfHri.png" alt="Character can not be displayed"></p>
  
  <p>All my code files are UTF-8 encoded, except for the moc files (.cxx). For whichever reason the moc executable does not generate them using unicode. Yet I was not able to get this unicode symbol displayed correctly. I also tried setting another font than the default one withouth success. Does anyone know what could be the problem?</p>
  
  <p>Thank you for your help.</p>