apache / apache/apisix-java-plugin-runner

bug: POST request with body contain chinese characters exist encoding problem

未关闭
#154 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue
主要语言
Java
星标
152
派生
102
PR 合并指标
30 天内没有已合并 PR

描述

### Issue description

### Environment

apisix-java-plugin-runner version:0.2.0
apsix version:2.13.1

### Minimal test code / Steps to reproduce the issue

1. Test post request contain chinese characters in OKHttp:
`{"source":"高德地图","content":"https://surl.amap.com/1PoSAsa1l4Ud","deviceId":"123456"}`
2. inner OKHttp,body will be translated to utf-8 format bytes:
`Charset charset = Util.UTF_8;
byte[] bytes = content.getBytes(charset);
`
4. Custom filter in apisix-java-plugin-runner, get request body:
`{"source":"高德地图","content":"https://surl.amap.com/1PoSAsa1l4Ud","deviceId":"123456"}`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。