nsFormSubmission::GetEncoder(nsIForm* form,
nsFormSubmission::GetEncoder(nsIHTMLContent* aForm,
nsFormSubmission::GetEncoder(nsIForm* form,                             nsIPresContext* aPresContext,                             const nsAString& aCharset,                             nsISaveAsCharset** aEncoder){  *aEncoder = nsnull;  nsresult rv = NS_OK;  nsAutoString charset(aCharset);  if(charset.Equals(NS_LITERAL_STRING("ISO-8859-1")))    charset.Assign(NS_LITERAL_STRING("windows-1252"));  rv = CallCreateInstance( NS_SAVEASCHARSET_CONTRACTID, aEncoder);  NS_ASSERTION(NS_SUCCEEDED(rv), "create nsISaveAsCharset failed");  NS_ENSURE_SUCCESS(rv, rv);  rv = (*aEncoder)->Init(NS_ConvertUCS2toUTF8(charset).get(),                         (nsISaveAsCharset::attr_EntityAfterCharsetConv +                           nsISaveAsCharset::attr_FallbackDecimalNCR),                         0);  NS_ASSERTION(NS_SUCCEEDED(rv), "initialize nsISaveAsCharset failed");  NS_ENSURE_SUCCESS(rv, rv);  return NS_OK;}