title: Specification of source charset encoding in MSVC++, like gcc "-finput-charset=CharSet"
body: <p>I want to create some sample programs that deal with encodings, specifically I want to use wide strings like:</p>
  
  <pre><code>wstring a=L"grüßen";
  wstring b=L"שלום עולם!";
  wstring c=L"中文";
  </code></pre>
  
  <p>Because these are example programs. </p>
  
  <p>This is absolutely trivial with gcc that treats source code as UTF-8 encoded text.
  But, straightforward compilation does not work under MSVC. I know that I can encode them using escape sequences but I would prefer to keep them as readable text.</p>
  
  <p>Is there any option that I can specify as command line switch for "cl" in order to
  make this work? There are there any command line switch like gcc'c <code>-finput-charset</code>?</p>
  
  <p>If not how would you suggest make the text natural for user?</p>
  
  <p><strong>Note:</strong> adding BOM to UTF-8 file is not an option because it becomes non-compilable by other compilers.</p>
  
  <p><strong>Note2:</strong> I need it to work in MSVC Version >= 9 == VS 2008</p>
  
  <p><strong>The real answer:</strong> There is no solution</p>