title: Is there a way to use non-utf 8 characters in StringStream?
body: <p>I am scanning some of the files in the hard drive and I am putting them to DB with that simple code below.</p>
  
  <pre><code>            std::stringstream ss;
          ss &lt;&lt; "INSERT INTO `test`.`file` ( `name`, `directory`, `size`, `extension`, `read_permission`, `write_permission`,`execute_permission`, `c_time`,`a_time`,`m_time`) VALUES ("&lt;&lt; "'"
              &lt;&lt; app.e.name &lt;&lt; "', " &lt;&lt; "'"
              &lt;&lt; app.e.directory &lt;&lt; "', " &lt;&lt; "'" &lt;&lt; app.e.size &lt;&lt; "', " &lt;&lt; "'" &lt;&lt; app.e.extension &lt;&lt; "', " &lt;&lt; "'"
              &lt;&lt; app.e.read_permission &lt;&lt; "', " &lt;&lt; "'" &lt;&lt; app.e.write_permission &lt;&lt; "', " &lt;&lt; "'" &lt;&lt; app.e.execute_permission &lt;&lt; "', " &lt;&lt; "'" 
              &lt;&lt; app.e.creation_time &lt;&lt; "', " &lt;&lt; "'" &lt;&lt; app.e.execution_time &lt;&lt; "', " &lt;&lt; "'" &lt;&lt; app.e.modification_time &lt;&lt; "'); ";
  </code></pre>
  
  <p><br>
  However, some of the files in my hard drive contains non-utf 8 characters like </p>
  
  <blockquote>
    <p>[ 'Ö', 'Ç', 'Ş', 'ı', 'Ğ']</p>
  </blockquote>
  
  <p>and it throws that exception: <br></p>
  
  <blockquote>
    <p>"Unhandled exception at 0x60a9d540 (msvcr100d.dll) in
    DigitalForensicsVisualisation.exe: 0xC0000005: Access violation
    reading location 0x00000000."</p>
  </blockquote>
  
  <p><br>
  Is there a way to store those characters in a stringstream?<br> Or any other alternative data structures to stringstream which are allowing multiple concatenation in a line.</p>