title: fprintf not printing Unicode character
body: <p>This morning I found a very weird problem and I can't find the solution. Please help me solve this problem with the code below (using Visual Studio C++ and MFC):</p>
  
  <pre><code>FILE *fp = NULL;
  //fp = fopen(mmFileName , "a");
  //Store the module directory path
  fopen_s( &amp;fp , "TempWorking.xml" , "wb");
  //char* TempChar;
  CString strtempff;
  strtempff = "\"&amp;lt;article&amp;gt;  &amp;lt;section class=&amp;quot;page&amp;quot;&amp;gt;&amp;lt;p&amp;gt;Writing for the clown show that is &amp;lt;em&amp;gt;Forbes&amp;lt;/em&amp;gt;, Darcy Travlos asks the &amp;lt;a href=&amp;quot;http://en.wikipedia.org/wiki/Betteridge%27s_law_of_headlines&amp;quot;&amp;gt;Betteridgeâ€™s Law&amp;lt;/a&amp;gt;-challenging question â€œApple And Google: The New â€˜Oldâ€™ Reality?â€ (No link but tip oâ€™ the an";
  char* TempArray;
  TempArray = new char[strtempff.GetLength()];
  strcpy(TempArray,strtempff.GetString());
  strtempff = "";
  strtempff.Empty();
  fprintf(fp,(char*)TempArray);
  </code></pre>
  
  <p>I don't know why my code is not working at the <code>fprintf()</code> statement: it gives me a debug assertion. <code>strtempff</code> is collected from the net, it's just an example in the code.</p>