title: How to convert a string to u8?
body: <p>This lines of code works fine.</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;locale.h&gt;
  #include &lt;string&gt;
  #include &lt;locale&gt;
  #include &lt;codecvt&gt;
  #include &lt;cassert&gt;
  
  int main() {
  
      const auto str = u8"حخدذرزژس";
      wstring_convert&lt;codecvt_utf8&lt;char32_t&gt;, char32_t&gt; cv;
      auto str32 = cv.from_bytes(str);
      for (auto c : str32)
          cout &lt;&lt; uint_least32_t(c) &lt;&lt; '\n';
  
      return 0;
  }
  </code></pre>
  
  <p>I need to read the string "حخدذرزژس" from file.</p>
  
  <p>How do i initialize <code>const auto str</code> with the string read from file to get the same answer as the above code?</p>