#include <stdio.h>
#include <glib.h>

int main (int argc, char **argv)
{
  const char *charset;
  GError *err = NULL;
  
  g_get_charset (&charset);
  
  printf ("The charset is %s\n", charset);

  if (g_convert ("Hello", -1, charset, "UTF-8", NULL, NULL, &err))
    printf ("Successfully converted\n");
  else
    printf ("failed to convert: %s\n", err->message);

  return 0;
}

