Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志打印body内容乱码 #180

Open
xpp011 opened this issue Dec 16, 2022 · 1 comment
Open

日志打印body内容乱码 #180

xpp011 opened this issue Dec 16, 2022 · 1 comment

Comments

@xpp011
Copy link

xpp011 commented Dec 16, 2022

我看到在签名时获取body是根据UTF-8字符集获取的。
image

但是在打印失败请求body日志时却没有使用UTF-8字符集,,现在来看我的body日志确实是乱码的
image

@xpp011
Copy link
Author

xpp011 commented Dec 16, 2022

我的使用方式和#43类似

restTemplate.setRequestFactory( new HttpComponentsClientHttpRequestFactory(httpClient));

无法手动创建和设置HttpEntity的字符集

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant