From 3e27c84bbd65175b8d2f1295662854d23b57365a Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Tue, 25 Jul 2017 13:09:34 +0200 Subject: [PATCH] Workaround for download correctly json data in IE --- includes/common.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index 9a28c06..8c1628f 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2613,7 +2613,10 @@ function drupal_to_js($var) { */ function drupal_json($var = NULL) { // We are returning JSON, so tell the browser. - drupal_set_header('Content-Type: application/json'); + // drupal_set_header('Content-Type: application/json'); + // Workaround while waiting an adecuate solution: + // https://suitedesk.cillero.es/ticket/3639#comment-3648 + drupal_set_header('Content-Type: text/html; charset=utf-8'); if (isset($var)) { echo drupal_to_js($var);