Skip to content

Commit

Permalink
🐛 #1547 修复小程序二维码创建参数包含中文时出现乱码的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
howardliu-cn authored May 7, 2020
1 parent eb38e86 commit 8f5a9e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public File execute(String uri, AbstractWxMaQrcodeWrapper qrcodeWrapper, WxType
);
}

httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson()));
httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson(), ContentType.APPLICATION_JSON));

try (final CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost);
final InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) {
Expand Down

0 comments on commit 8f5a9e0

Please sign in to comment.