title: rapidJSON and UNICODE in VisualStudio 2013
body: <p>I came across a problem I am not sure how to solve. Here is my code.</p>
  
  <pre><code>#include "rapidjson/write.h"
  #include "rapidjson/stringbuffer.h"
  
  ...
  
  void WriteResultToJSON()
  {
    CHAR a[] = "a";
    TCHAR b[] = _T("b");
    WCHAR c[] = L"c";
  
    StringBuffer s;
    Writer&lt;StringBuffer&gt; writer(s);
    writer.StartObject();
    writer.String("A:");
    writer.String(a);
    writer.String("B");
    writer.String(b);
    writer.String("C");
    writer.String(c);
    write.EndObject();
    printf(s.GetString());
  }
  </code></pre>
  
  <p>When the project character set value is "Use Unicode Character Set", I am not able to compile. Only when it is set to "Use Multi-Byte Character Set".</p>
  
  <p>Error says:</p>
  
  <pre><code>no instance of overloaded function "rapidjson::Writter&lt;OutputStream, SourceEncoding, Target Encoding, StackAllocator&gt;::String [with OutputStream=rapidjson::StringBuffer, SourceEncoding=rapidjson::UTF8&lt;char&gt;,TargetEncoding=rapidjson::UTF8&lt;char&gt;, StackAllocator=rapidjson::CtrAllocator]" matches the argument list
   argument types are (TCHAR  [2])
   object type is: rapidjson::Writter&lt;rapidjson::StringBuffer, rapidjson::UTF8&lt;char&gt;, rapidjson::UTF8&lt;char&gt;, rapidjson::CrtAllocator&gt;
  </code></pre>
  
  <p>I got a bad feeling that rapidjson supports only utf8 and it wont work with my current project which is all in utf16, or is there a way how to use it when character set is set to unicode?</p>
  
  <p>Thank you</p>
  
  <p>yary</p>