title: C++ substring multi byte characters
body: <p>I am having this std::string which contains some characters that span multiple bytes.</p>
  
  <p>When I do a substring on this string, the output is not valid, because ofcourse, these characters are counted as 2 characters. In my opinion I should be using a wstring instead, because it will store these characters in as one element instead of more. </p>
  
  <p>So I decided to copy the string into a wstring, but ofcourse this does not make sense, because the characters remain split over 2 characters. This only makes it worse.</p>
  
  <p>Is there a good solution on converting a string to a wstring, merging the special characters into 1 element instead of 2.</p>
  
  <p>Thanks</p>