From cbad0a1921d4efddc8bd220e203c6c53dfb9929f Mon Sep 17 00:00:00 2001 From: "heikki%netscape.com" Date: Thu, 20 Apr 2006 03:38:08 +0000 Subject: [PATCH] Bug 137866, responseText should default to UTF-8. r=bzbarsky, sr=jst. --- content/base/src/nsXMLHttpRequest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index 64981137700..28c8f990b4a 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -379,7 +379,8 @@ nsXMLHttpRequest::ConvertBodyToText(PRUnichar **aOutBuffer) return rv; } else { if (NS_FAILED(DetectCharset(dataCharset)) || dataCharset.IsEmpty()) { - dataCharset.Assign(NS_LITERAL_STRING("ISO-8859-1")); // Parser assumes ISO-8859-1 + // MS documentation states UTF-8 is default for responseText + dataCharset.Assign(NS_LITERAL_STRING("UTF-8")); } }