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 摘要。