title: Convert ICU UnicodeString to platform dependent char * (or std::string)
body: <p>In my application I use ICU UnicodeString to store my strings. Since I use some libraries incompatible with ICU, I need to convert UnicodeString to its platform dependent representation.</p>
  
  <p>Basicly what I need to do is reverse process form creating new UnicodeString object - new UnicodeString("string encoded in system locale").</p>
  
  <p>I found out <a href="https://stackoverflow.com/questions/2739572/c-utf-8-output-with-icu">this</a> topic - so I know it can be done with use of stringstream.</p>
  
  <p>So my answer is, can it be done in some other simpler way, without using stringstream to convert?</p>