Set output behavior for unicode encoder to prevent the convesion to be aborted,

bug 118618, r=naving, sr=sspitzer.
This commit is contained in:
nhotta%netscape.com 2002-01-10 01:36:59 +00:00
parent 534ed8ad12
commit 35fdaf8fd9

View File

@ -357,6 +357,8 @@ NS_IMETHODIMP nsImportService::SystemStringFromUnicode(const PRUnichar *uniStr,
// get an unicode converter
rv = ccm2->GetUnicodeEncoder(charsetAtom, &m_pEncoder);
if (NS_SUCCEEDED(rv))
rv = m_pEncoder->SetOutputErrorBehavior(nsIUnicodeEncoder::kOnError_Replace, nsnull, '?');
}
}