From d034ddb9a7a5f279c08b254decc3b4a244e2ff66 Mon Sep 17 00:00:00 2001 From: Jacky Date: Mon, 24 Sep 2018 20:38:25 -0400 Subject: [PATCH] force the encoding to UTF8 --- main/webapp/modules/core/MOD-INF/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/webapp/modules/core/MOD-INF/controller.js b/main/webapp/modules/core/MOD-INF/controller.js index 55ca73bcd..44c58d272 100644 --- a/main/webapp/modules/core/MOD-INF/controller.js +++ b/main/webapp/modules/core/MOD-INF/controller.js @@ -585,7 +585,7 @@ function process(path, request, response) { var urlConnection = url.openConnection(); input = new Packages.java.io.BufferedReader( - new Packages.java.io.InputStreamReader(urlConnection.getInputStream())); + new Packages.java.io.InputStreamReader(urlConnection.getInputStream(), "UTF8")); output.write("/* ===== "); output.write(qualifiedPath.fullPath);