res = charsetConverterManager->GetCharsetAtom(aCharset.GetUnicode(),
res = charsetConverterManager->GetCharsetAtom(aCharset.get(),
nsUNIXCharset::VerifyCharset(nsString &aCharset){  nsresult res;  //  // get the convert manager  //  nsCOMPtr <nsICharsetConverterManager2>  charsetConverterManager;  charsetConverterManager = do_GetService(NS_CHARSETCONVERTERMANAGER_CONTRACTID, &res);  if (NS_FAILED(res))    return res;  //  // check if we recognize the charset string  //  nsCOMPtr <nsIAtom> charsetAtom;  res = charsetConverterManager->GetCharsetAtom(aCharset.GetUnicode(),                                                   getter_AddRefs(charsetAtom));  if (NS_FAILED(res)) {    return res;  }  //  // check if we can get an input converter  //  nsCOMPtr <nsIUnicodeEncoder> enc;  res = charsetConverterManager->GetUnicodeEncoder(charsetAtom, getter_AddRefs(enc));  if (NS_FAILED(res)) {    NS_ASSERTION(0, "failed to create encoder");    return res;  }  //  // check if we can get an output converter  //  nsCOMPtr <nsIUnicodeDecoder> dec;  res = charsetConverterManager->GetUnicodeDecoder(charsetAtom, getter_AddRefs(dec));  if (NS_FAILED(res)) {    NS_ASSERTION(0, "failed to create decoder");    return res;  }  //  // return the preferred string  //  const PRUnichar *prefName;  res = charsetAtom->GetUnicode(&prefName);  if (NS_SUCCEEDED(res))    aCharset.Assign(prefName);  NS_ASSERTION(NS_SUCCEEDED(res), "failed to get preferred charset name, using non-preferred");  return NS_OK;}