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);