title: std::wcout to console window in Xcode
body: <p>In an Xcode project, if I use <code>std::cout</code> to write to the console the output is fine.</p>
  
  <p>However, if I use <code>std::wcout</code> I get no output.</p>
  
  <p>I know that this is a thorny issue in C++, and I've been googling around to try and find a specific solution in the Xcode case. A couple of things I found that it was suggested should work were:</p>
  
  <pre><code>std::cout.imbue( std::locale("") );
  </code></pre>
  
  <p>and</p>
  
  <pre><code>std::setlocale(LC_ALL, "");
  </code></pre>
  
  <p>Neither of these have made any difference. Before I resign myself to spending the next couple of weeks studying the facets API just to be able to write to the console I thought I'd check with the esteemed audience here.</p>
  
  <p>[Update]</p>
  
  <p>I think the reason for the problem I've been having is actually to do with the specific encoding of some of the strings I'm trying to print.</p>
  
  <p>If I send just a string literal, using the <code>L"my string" syntax</code> it works! It appears this is using UTF32 - little endian encoding.</p>
  
  <p>However, I've been mixing this with strings I've been passed from Objective C++ code using NSUTF32BigEndianStringEncoding encoding. It's this mix of encodings that's causing the problems.</p>
  
  <p>I think we can consider this matter closed. Thanks for reading.</p>