Skip to content

Commit

Permalink
fix: support chinese encoding in the response body (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: chenyibing <331035766@qq.com>
  • Loading branch information
cyb331 and chenyibing committed Jul 24, 2021
1 parent 3f5a384 commit bcf2ce3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
}

Expand Down

0 comments on commit bcf2ce3

Please sign in to comment.