res = aMimeCharsetConverterClass.Initialize(from_charset, from_charset, autoDetection, -1);
res = aMimeCharsetConverterClass.Initialize(from_charset, to_charset, autoDetection, -1);
PRInt32 MIME_ConvertCharset(const PRBool autoDetection, const char* from_charset, const char* to_charset,                            const char* inBuffer, const PRInt32 inLength, char** outBuffer, PRInt32* outLength,                            PRInt32* numUnConverted){//  char srcCharset[kMAX_CSNAME+1], dstCharset[kMAX_CSNAME+1];  MimeCharsetConverterClass aMimeCharsetConverterClass;  PRInt32 res;  // commenting out per Naoki's instructions.//  srcCharset[0] = '\0';//  dstCharset[0] = '\0';//  PL_strcpy(srcCharset, PL_strcasecmp(from_charset, "us-ascii") ? (char *) from_charset : "iso-8859-1");//  PL_strcpy(dstCharset, PL_strcasecmp(from_charset, "us-ascii") ? (char *) to_charset : "iso-8859-1");  res = aMimeCharsetConverterClass.Initialize(from_charset, from_charset, autoDetection, -1);  if (res != -1) {    res = aMimeCharsetConverterClass.Convert(inBuffer, inLength, outBuffer, outLength, NULL);  }  return res;}