Browse Source

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

Alexander Zobnin 9 năm trước cách đây
mục cha
commit
124961a9e3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/app/features/dashboard/dashnav/dashnav.ts

+ 1 - 1
public/app/features/dashboard/dashnav/dashnav.ts

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