wechatpay-apiv3 / wechatpay-apache-httpclient

微信支付 APIv3 Apache HttpClient装饰器(decorator)
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/index.shtml
Apache License 2.0
674 stars 251 forks source link

日志打印body内容乱码 #180

Open xpp011 opened 1 year ago

xpp011 commented 1 year ago

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

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

xpp011 commented 1 year ago

我的使用方式和#43类似

restTemplate.setRequestFactory( new HttpComponentsClientHttpRequestFactory(httpClient));

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