diff --git a/alipay/aop/api/util/WebUtils.py b/alipay/aop/api/util/WebUtils.py index 0d4802d12..e8da61a5b 100644 --- a/alipay/aop/api/util/WebUtils.py +++ b/alipay/aop/api/util/WebUtils.py @@ -147,7 +147,7 @@ def do_post(url, query_string=None, headers=None, params=None, charset='utf-8', response = connection.getresponse() if response.status != 200: raise ResponseException('[' + THREAD_LOCAL.uuid + ']invalid http status ' + str(response.status) + \ - ',detail body:' + response.read()) + ',detail body:' + response.read().decode(encoding='utf-8')) result = response.read() try: response.close()