title: GLib convert GString from UTF-8 to UTF-16/32 possible?
body: <p>The GLib provides the struct <em>GString</em> which is encoded in UTF-8.</p>
  
  <p>I know there are functions to convert a single <em>gchar</em> (UTF-8) to <em>gunicode</em> (UTF-32) or <em>gunicode2</em> (UTF-16).</p>
  
  <p>But if I want to convert a complete GString into UTF-16/UTF-32, is this possible?</p>
  
  <p>If not, I don't see the point in storing the majority of text in UTF-8 strings but you can only convert single chars into UTF-16/UTF-32 and are forced to use gunicode-arrays, when GString encapsulated those nasty arrays. And you wouldn't be able to use all the string functions provided by the glib on your UTF-16/UTF-32 arrays.</p>