From e598a1267608f0d321903f6953e97b958e4399e3 Mon Sep 17 00:00:00 2001 From: chkp-maxcalderon <49240296+chkp-maxcalderon@users.noreply.github.com> Date: Mon, 6 May 2019 16:43:21 +0300 Subject: [PATCH 1/4] fixed utf-8 problem changed writeJsonObjectToFile in src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageTool.java --- .../java/com/checkpoint/mgmt_api/examples/ShowPackageTool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageTool.java b/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageTool.java index d5e1c31..dc146ee 100644 --- a/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageTool.java +++ b/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageTool.java @@ -1506,7 +1506,8 @@ private static boolean writeJsonObjectToFile(JSONObject object, RandomAccessFile if (fileWriter.getFilePointer() > 1) { fileWriter.writeBytes(","); } - fileWriter.writeBytes(object.toJSONString()); + byte[] bytes = object.toJSONString().getBytes("UTF-8"); + fileWriter.write(bytes); } catch (IOException e) { return false; From f5e1da295b135806907580584f3c56234bd15747 Mon Sep 17 00:00:00 2001 From: chkp-maxcalderon <49240296+chkp-maxcalderon@users.noreply.github.com> Date: Mon, 6 May 2019 16:48:34 +0300 Subject: [PATCH 2/4] fixed utf-8 problem html changed html --- .../resources/com/checkpoint/mgmt_api/templates/index.tpl.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/com/checkpoint/mgmt_api/templates/index.tpl.html b/src/main/resources/com/checkpoint/mgmt_api/templates/index.tpl.html index 5e55438..1678c79 100644 --- a/src/main/resources/com/checkpoint/mgmt_api/templates/index.tpl.html +++ b/src/main/resources/com/checkpoint/mgmt_api/templates/index.tpl.html @@ -1,6 +1,7 @@
+