title: How to convert multibyte UTF-8 std::string to NSString?
body: <p>I have a set of C++ <code>std::string</code>, of which some have multibyte characters such as <code>á</code>, <code>ä</code>, <code>ç</code>, <code>ß</code> or <code>ñ</code>. When I convert them to <code>NSString</code> using <code>NSString stringWithUTF8String:</code>, the resulting strings contain weird characters that can not be rendered.</p>
  
  <p>I have also tried <code>NSString stringWithCString:encoding</code>, but I haven't found any encoding that works.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>--</p>
  
  <p>I have finally solved it. The conversion was well done but the characters didn't show on the debugger when it was connected to the phone, but were well displayed when connected to the debugger. The problem I had in my program was that the text renderer did not support some special characters...</p>