force the encoding to UTF8

This commit is contained in:
Jacky 2018-09-24 20:38:25 -04:00
parent 22be1ec323
commit d034ddb9a7

View File

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