title: Unicode to char* c++ 11
body: <p>I want to know if is there any way to convert a unicode code to a string or char in C++ 11.
  I've been trying with extended latin unicode letter Á (as an example) which has this codification:</p>
  
  <p>letter: Á<br>
  Unicode: 0x00C1<br>
  UTF8 literal: \xc3\x81</p>
  
  <p>I've been able to do so if it's hardcoded as:</p>
  
  <pre><code>const char* c = u8"\u00C1";
  </code></pre>
  
  <p>But if i got the byte sequence as a short, how can I do the equivalent to get the char* or std::string 'Á'?</p>
  
  <p>EDIT, SOLUTION:</p>
  
  <p>I was finally able to do so, here is the solution if anyone needs it:</p>
  
  <pre><code>std::wstring ws;
  for(short input : inputList)
  {
      wchar_t wc(input);
      ws += wc;
  }
  std::wstring_convert&lt;std::codecvt_utf8&lt;wchar_t&gt;&gt; cv;
  str = cv.to_bytes(ws);
  </code></pre>
  
  <p>Thanks for the comments they were very helpful.</p>