Skip to content
Permalink
Browse files
fix: support chinese encoding in the response body (#53)
Co-authored-by: chenyibing <331035766@qq.com>
  • Loading branch information
cyb331 and chenyibing committed Jul 24, 2021
1 parent 3f5a384 commit bcf2ce31971731d32509307485962a23654ef6ce
Showing 1 changed file with 1 addition and 1 deletion.
@@ -187,7 +187,7 @@ private int buildStopResp(FlatBufferBuilder builder) {

int bodyIndex = -1;
if (StringUtils.hasText(body)) {
byte[] bodyBytes = body.getBytes(StandardCharsets.US_ASCII);
byte[] bodyBytes = body.getBytes(StandardCharsets.UTF_8);
bodyIndex = Stop.createBodyVector(builder, bodyBytes);
}

0 comments on commit bcf2ce3

Please sign in to comment.