fix bug 81203. change ISO-8859-1 to windows-1252 for form submission

r=brade sr=kin
This commit is contained in:
ftang%netscape.com 2001-10-11 00:20:07 +00:00
Родитель cd77d3b7fb
Коммит c2263fe771
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1166,6 +1166,8 @@ NS_IMETHODIMP nsFormFrame::GetEncoder(nsIUnicodeEncoder** encoder)
NS_GET_IID(nsICharsetConverterManager), NS_GET_IID(nsICharsetConverterManager),
(nsISupports**)&ccm); (nsISupports**)&ccm);
if(NS_SUCCEEDED(rv) && (nsnull != ccm)) { if(NS_SUCCEEDED(rv) && (nsnull != ccm)) {
if(charset.Equals(NS_LITERAL_STRING("ISO-8859-1")))
charset.Assign(NS_LITERAL_STRING("windows-1252"));
rv = ccm->GetUnicodeEncoder(&charset, encoder); rv = ccm->GetUnicodeEncoder(&charset, encoder);
nsServiceManager::ReleaseService( kCharsetConverterManagerCID, ccm); nsServiceManager::ReleaseService( kCharsetConverterManagerCID, ccm);
if (nsnull == encoder) { if (nsnull == encoder) {