struct mime_stream_data *msd = (struct mime_stream_data *) stream_closure;
mime_convert_charset (const char *input_line, PRInt32 input_length,                      const char *input_charset, const char *output_charset,                      char **output_ret, PRInt32 *output_size_ret,                      void *stream_closure){  struct mime_stream_data *msd = (struct mime_stream_data *) stream_closure;  // Now do conversion to UTF-8 for output  char  *convertedString = NULL;  PRInt32 convertedStringLen;  PRInt32 res = MIME_ConvertCharset(PR_TRUE, input_charset, "UTF-8", input_line, input_length,                                     &convertedString, &convertedStringLen);  if (res != 0)  {      *output_ret = 0;      *output_size_ret = 0;  }  else  {    *output_ret = (char *) convertedString;    *output_size_ret = convertedStringLen;  }    return 0;}