rv = gCharSetManager->GetCharsetAtom(value.GetUnicode(), getter_AddRefs(charset));
rv = gCharSetManager->GetCharsetAtom(value.get(), getter_AddRefs(charset));
GetConverter(const char* aFontName, nsIUnicodeEncoder** aConverter){  *aConverter = nsnull;  nsAutoString value;  nsresult rv = GetEncoding(aFontName, value);  if (NS_FAILED(rv)) return rv;  nsCOMPtr<nsIAtom> charset;  rv = gCharSetManager->GetCharsetAtom(value.GetUnicode(), getter_AddRefs(charset));  if (NS_FAILED(rv)) return rv;  rv = gCharSetManager->GetUnicodeEncoder(charset, aConverter);  if (NS_FAILED(rv)) return rv;  return (*aConverter)->SetOutputErrorBehavior((*aConverter)->kOnError_Replace, nsnull, '?');}