while (*cp) { if (*cp > 127) { PL_strcpy(charset, "ISO-8859-1"); break; } cp++; }
extern "C" char *MIME_DecodeMimePartIIStr(const char *header, char *charset,                                          PRBool eatContinuations){  char *result = nsnull;  if (header == 0)    return nsnull;  // If no MIME encoded then do nothing otherwise decode the input.  if (*header != '\0' && intlmime_is_mime_part2_header(header)) {	  result = intl_decode_mime_part2_str(header, charset);	  if (eatContinuations)		  result = MIME_StripContinuations(result);  }  else if (*charset == '\0') {    // no charset name is specified then assume it's us-ascii and dup the input    // later change the caller to avoid the duplication    PL_strcpy(charset, "us-ascii");    return nsCRT::strdup(header);   }  return result;}