fix bug in the SaveDocument code.

This commit is contained in:
ftang%netscape.com 2000-05-10 03:52:02 +00:00
parent f7c7595830
commit c872bec44c
2 changed files with 2 additions and 2 deletions

View File

@ -3220,7 +3220,7 @@ nsDocument::SaveFile(nsFileSpec* aFileSpec,
charsetStr.AssignWithConversion("ISO-8859-1");
}
}
encoder->SetCharset(aSaveCharset);
encoder->SetCharset(charsetStr);
rv = encoder->EncodeToStream(stream.GetIStream());

View File

@ -3220,7 +3220,7 @@ nsDocument::SaveFile(nsFileSpec* aFileSpec,
charsetStr.AssignWithConversion("ISO-8859-1");
}
}
encoder->SetCharset(aSaveCharset);
encoder->SetCharset(charsetStr);
rv = encoder->EncodeToStream(stream.GetIStream());