diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 53694175d445..3a38a2cf07cb 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -3220,7 +3220,7 @@ nsDocument::SaveFile(nsFileSpec* aFileSpec, charsetStr.AssignWithConversion("ISO-8859-1"); } } - encoder->SetCharset(aSaveCharset); + encoder->SetCharset(charsetStr); rv = encoder->EncodeToStream(stream.GetIStream()); diff --git a/layout/base/src/nsDocument.cpp b/layout/base/src/nsDocument.cpp index 53694175d445..3a38a2cf07cb 100644 --- a/layout/base/src/nsDocument.cpp +++ b/layout/base/src/nsDocument.cpp @@ -3220,7 +3220,7 @@ nsDocument::SaveFile(nsFileSpec* aFileSpec, charsetStr.AssignWithConversion("ISO-8859-1"); } } - encoder->SetCharset(aSaveCharset); + encoder->SetCharset(charsetStr); rv = encoder->EncodeToStream(stream.GetIStream());