GetPlatformCharset(nsAutoString& aCharset)
GetPlatformCharset(nsString& aCharset)
GetPlatformCharset(nsAutoString& 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.AssignWithConversion("ISO-8859-1");  // use ISO-8859-1 in case of any error    }    return rv;}