Skip to content

Commit

Permalink
Fix HopServer charset decoding to UTF-8 apache#3590
Browse files Browse the repository at this point in the history
  • Loading branch information
nadment committed Jan 31, 2024
1 parent dbcf2d1 commit 203100f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/src/main/java/org/apache/hop/server/HopServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
import java.util.Date;
import java.util.HashMap;
Expand Down Expand Up @@ -798,7 +799,7 @@ public String execService(IVariables variables, String service) throws Exception

// Method is defined as package-protected in order to be accessible by unit tests
String getResponseBodyAsString(InputStream is) throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is));
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));
StringBuilder bodyBuffer = new StringBuilder();
String line;

Expand Down

0 comments on commit 203100f

Please sign in to comment.