Added a new param to the HTML->Text sink stream to take the charset so that we can convert to plain text with the correct charset for the platform. Enhanced the XIFFormatConverter to take advantage of this, fixing bug 21414. r=akkana, nhotta.

git-svn-id: svn://10.0.0.236/trunk@57149 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com
2000-01-08 01:48:39 +00:00
parent 9aeca531bf
commit f4e554070e
6 changed files with 40 additions and 14 deletions

View File

@@ -195,7 +195,7 @@ nsTextEncoder::EncodeToString(nsString& aOutputString)
rv = NS_New_HTML_ContentSinkStream(&sink, &aOutputString, mFlags);
else // default to text/plain
rv = NS_New_HTMLToTXT_SinkStream(&sink, &aOutputString,
rv = NS_New_HTMLToTXT_SinkStream(&sink, &aOutputString, nsnull,
mWrapColumn, mFlags);
if (sink && NS_SUCCEEDED(rv))