title: how to convert wchar_t to string in swift
body: <p>I'd like to get a <code>wchar_t</code> array from <code>C</code> library, and convert it to swift data structure, my code is here:</p>
  
  <pre><code>    func getResults(recognizer: UnsafeMutablePointer&lt;Void&gt;, stroke: UnsafeMutablePointer&lt;Int32&gt;, touchState: Int32) -&gt; [String] {
      var bufLen : Int32
      var buf = UnsafeMutablePointer&lt;wchar_t&gt;.alloc(Int(bufLen))        
      getRecognition(recognizer, stroke, touchState, buf, bufLen)
  
      var results = String.fromCString(buf)! //this line has an error, cause the buf is wchar_t*, not char*
  }
  </code></pre>
  
  <p>how could I convert buf to swift data structure?
  I know if buf is <code>UnsafeMutablePointer&lt;Int8&gt;.alloc(Int(bufLen))</code>, we can use <code>String.fromCString(buf)</code>! to convert it.</p>
  
  <p>If I println(buf[0]), it's print an integer 67, which is the ascii value of 'C', how can I println(buf[0]) as 'C' instead of 0? 
  Thanks!</p>