aCharset.Assign(NS_LITERAL_CSTRING("ISO-8859-1"));
aCharset.AssignLiteral("ISO-8859-1");
GetPlatformCharset(nsCString& aCharset){    nsresult rv;    // we may cache it since the platform charset will not change through application life    nsCOMPtr <nsIPlatformCharset> platformCharset = do_GetService(NS_PLATFORMCHARSET_CONTRACTID, &rv);    if (NS_SUCCEEDED(rv) && platformCharset) {        rv = platformCharset->GetCharset(kPlatformCharsetSel_FileName, aCharset);    }    if (NS_FAILED(rv)) {        aCharset.Assign(NS_LITERAL_CSTRING("ISO-8859-1"));  // use ISO-8859-1 in case of any error    }    return rv;}