title: Convert string from UTF-8 to ISO-8859-1
body: <p>I'm trying to convert a UTF-8 <code>string</code> to a ISO-8859-1 <code>char*</code> for use in legacy code. The only way I'm seeing to do this is with <a href="http://www.gnu.org/software/libc/manual/html_node/Generic-Conversion-Interface.html"><code>iconv</code></a>. </p>
  
  <p>I would definitely prefer a completely <code>string</code>-based C++ solution then just call <code>.c_str()</code> on the resulting string.</p>
  
  <p>How do I do this? Code example if possible, please. I'm fine using <code>iconv</code> if it is the only solution you know.</p>