diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp
index 76fba82ef67f33785e50bbe8462e85521c873755..e2108d67a8f5ad78fdcd96549b302f53c3f8ed47 100755
--- a/indra/newview/lltranslate.cpp
+++ b/indra/newview/lltranslate.cpp
@@ -192,11 +192,14 @@ void LLTranslationAPIHandler::translateMessageCoro(LanguagePair_t fromTo, std::s
     LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];
     LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults);
 
-    std::string translation, detected_lang, err_msg;
+    std::string translation, err_msg;
+    std::string detected_lang(fromTo.second);
 
     int parseResult = status.getType();
-    if (this->parseResponse(parseResult, result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS_RAW].asString(), 
-        translation, detected_lang, err_msg))
+    const LLSD::Binary &rawBody = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS_RAW].asBinary();
+    std::string body(rawBody.cbegin(), rawBody.cend());
+
+    if (this->parseResponse(parseResult, body, translation, detected_lang, err_msg))
     {
         // Fix up the response
         LLStringUtil::replaceString(translation, "&lt;", "<");
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 7000dcf21b52276529d0fdec37736742372aca19..d995ce4cdf9661b6160d6d5fd4d2987a76f76d83 100755
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -3496,7 +3496,7 @@ void translateSuccess(LLChat chat, LLSD toastArgs, std::string originalMsg, std:
 {
     // filter out non-interesting responses  
     if (!translation.empty()
-        && (expectLang != detected_language)
+        && ((detected_language.empty()) || (expectLang != detected_language))
         && (LLStringUtil::compareInsensitive(translation, originalMsg) != 0))
     {
         chat.mText += " (" + translation + ")";