mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-29 18:18:27 +00:00
Fall back to UTF-8 instead of Windows-1252 as last-effort.
If the following applies, fall back to UTF-8: - No content encoding is known - No encoding override is set - There is no specific fallback for the browser locale
This commit is contained in:
@@ -94,7 +94,7 @@ FallbackEncoding::Get(nsACString& aFallback)
|
||||
|
||||
if (NS_FAILED(nsUConvPropertySearch::SearchPropertyValue(
|
||||
localesFallbacks, ArrayLength(localesFallbacks), locale, mFallback))) {
|
||||
mFallback.AssignLiteral("windows-1252");
|
||||
mFallback.AssignLiteral("UTF-8");
|
||||
}
|
||||
|
||||
aFallback = mFallback;
|
||||
|
||||
Reference in New Issue
Block a user