Explicitly set charset to utf-8 in viewJson(), fixes #5719. (#5774)

This commit is contained in:
Alexander Zobnin 2016-08-10 21:23:58 +03:00 committed by Torkel Ödegaard
parent a56cf9d6fd
commit 124961a9e3

View File

@ -191,7 +191,7 @@ export class DashNavCtrl {
$scope.viewJson = function() {
var clone = $scope.dashboard.getSaveModelClone();
var html = angular.toJson(clone, true);
var uri = "data:application/json," + encodeURIComponent(html);
var uri = "data:application/json;charset=utf-8," + encodeURIComponent(html);
var newWindow = window.open(uri);
};