Commit 124961a9 by Alexander Zobnin Committed by Torkel Ödegaard

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

parent a56cf9d6
......@@ -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);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment