This is an automated email from the ASF dual-hosted git repository. xuyang pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push: new 6ce94ac4a55 [fix](fe rest api) When the query plan contains Chinese characters, the query/profile API results in garbled text (#32017) 6ce94ac4a55 is described below commit 6ce94ac4a5577f25828c98c71cb5dc073236268f Author: lide <mailtol...@sina.com> AuthorDate: Mon Mar 11 15:46:34 2024 +0800 [fix](fe rest api) When the query plan contains Chinese characters, the query/profile API results in garbled text (#32017) fix garbled text in the query/profile API when query plan contains Chinese characters --- .../src/main/java/org/apache/doris/httpv2/rest/manager/HttpUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/HttpUtils.java b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/HttpUtils.java index ccaaaf05ca1..4c13c05ceb2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/HttpUtils.java +++ b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/HttpUtils.java @@ -109,7 +109,8 @@ public class HttpUtils { private static String executeRequest(HttpRequestBase request) throws IOException { CloseableHttpClient client = HttpClientBuilder.create().build(); - return client.execute(request, httpResponse -> EntityUtils.toString(httpResponse.getEntity())); + return client.execute(request, httpResponse -> EntityUtils.toString(httpResponse.getEntity(), + StandardCharsets.UTF_8)); } static String parseResponse(String response) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org