You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by sdf <lf...@163.com> on 2021/05/24 07:30:27 UTC

soul调dubbo后端服务响应报文中文乱码

soul 版本 2.3.0
dubbo后端服务 dubbo版本为 2.7.6






直接访问dubbo接口返回报文如下,errorMsg 正常显示


{
  "msg": "SUCCESS",
  "code": "0000",
  "flag": "S",
  "data": {
    "orderId": "367131013865906176",
    "orderStatus": 1,
    "signUrl": null,
    "externalOrderId": "311212112312313",
    "originalUrl": "",
    "templateId": 20002,
    "errorMsg": "成功"
  }
}


通过soul 访问后端接口 


{
  "msg": "SUCCESS",
  "code": "0000",
  "flag": "S",
  "data": {
    "orderId": "367131013865906176",
    "orderStatus": 1,
    "signUrl": null,
    "externalOrderId": "311212112312313",
    "originalUrl": "",
    "templateId": 20002,
    "errorMsg": "??"
  }
}


代码跟踪 发现 org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute  执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~

Re: Re: Re: soul调dubbo后端服务响应报文中文乱码

Posted by XiaoYu <xi...@apache.org>.
hi sdf

the apache email can not receive img,  if apache dubbo result  Already
garbled。

pls checked apache dubbo service!


sdf <lf...@163.com> 于2021年5月24日周一 下午4:15写道:

>
>
>
>
> this result has been garbled
>
>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "??"
> >> >>   }
> >> >> }
>
>
>
>
>
>
>
> 在 2021-05-24 16:04:02,"XiaoYu" <xi...@apache.org> 写道:
> >Hi sdf
> >
> >in DubboResponsePlugin,  the result provide by Apache dubbo,
> >
> >You can see if this result has been garbled.  code like this :
> >
> >final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);
> >
> >
> >
> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:49写道:
> >
> >>
> >>
> >>
> >> soul tuning dubbo backend service response message Chinese messy code
> >>
> >>
> >> soul version 2.3.0
> >> dubbo backend service dubbo version is 2.7.6
> >>
> >>
> >> Direct access to the dubbo interface returns the following message, with
> >> errorMsg displayed normally
> >>
> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "成功"
> >> >>   }
> >>
> >> >> }
> >>
> >>
> >> Access to the back-end interface via soul
> >>
> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "??"
> >> >>   }
> >> >> }
> >> Code Trace Discovery
> >> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> >>
> >> The result of the execution is already garbled, and still not solved by
> >> urldecode transcoding
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
> >> >Hi,
> >> >
> >> >Can you translate your question to English?
> >> >
> >> >--
> >> >
> >> >Zhang Yonglun
> >> >Apache ShenYu (Incubating)
> >> >Apache ShardingSphere
> >> >
> >> >
> >> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
> >> >
> >> >> soul 版本 2.3.0
> >> >> dubbo后端服务 dubbo版本为 2.7.6
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
> >> >>
> >> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "成功"
> >> >>   }
> >> >> }
> >> >>
> >> >>
> >> >> 通过soul 访问后端接口
> >> >>
> >> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "??"
> >> >>   }
> >> >> }
> >> >>
> >> >>
> >> >> 代码跟踪 发现
> >> >>
> >> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> >> >> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
> >>
>
>
>
>
>

Re:Re: Re: soul调dubbo后端服务响应报文中文乱码

Posted by sdf <lf...@163.com>.











this result has been garbled


>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "??"
>> >>   }
>> >> }











在 2021-05-24 16:04:02,"XiaoYu" <xi...@apache.org> 写道:
>Hi sdf
>
>in DubboResponsePlugin,  the result provide by Apache dubbo,
>
>You can see if this result has been garbled.  code like this :
>
>final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);
>
>
>
>sdf <lf...@163.com> 于2021年5月24日周一 下午3:49写道:
>
>>
>>
>>
>> soul tuning dubbo backend service response message Chinese messy code
>>
>>
>> soul version 2.3.0
>> dubbo backend service dubbo version is 2.7.6
>>
>>
>> Direct access to the dubbo interface returns the following message, with
>> errorMsg displayed normally
>>
>>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "成功"
>> >>   }
>>
>> >> }
>>
>>
>> Access to the back-end interface via soul
>>
>>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "??"
>> >>   }
>> >> }
>> Code Trace Discovery
>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>>
>> The result of the execution is already garbled, and still not solved by
>> urldecode transcoding
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
>> >Hi,
>> >
>> >Can you translate your question to English?
>> >
>> >--
>> >
>> >Zhang Yonglun
>> >Apache ShenYu (Incubating)
>> >Apache ShardingSphere
>> >
>> >
>> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
>> >
>> >> soul 版本 2.3.0
>> >> dubbo后端服务 dubbo版本为 2.7.6
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
>> >>
>> >>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "成功"
>> >>   }
>> >> }
>> >>
>> >>
>> >> 通过soul 访问后端接口
>> >>
>> >>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "??"
>> >>   }
>> >> }
>> >>
>> >>
>> >> 代码跟踪 发现
>> >>
>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>> >> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
>>

Re: Re: Re: soul调dubbo后端服务响应报文中文乱码

Posted by XiaoYu <xi...@apache.org>.
Hi

maybe apache dubbo  genericService invoke have error, what  protocol
and Serialization used?




sdf <lf...@163.com> 于2021年5月24日周一 下午4:26写道:

>
>
>
> Direct requests to the dubbo service without going through the gateway
> will not mess up the code, only requests through shenyu will mess up the
> code
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 在 2021-05-24 16:04:02,"XiaoYu" <xi...@apache.org> 写道:
> >Hi sdf
> >
> >in DubboResponsePlugin,  the result provide by Apache dubbo,
> >
> >You can see if this result has been garbled.  code like this :
> >
> >final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);
> >
> >
> >
> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:49写道:
> >
> >>
> >>
> >>
> >> soul tuning dubbo backend service response message Chinese messy code
> >>
> >>
> >> soul version 2.3.0
> >> dubbo backend service dubbo version is 2.7.6
> >>
> >>
> >> Direct access to the dubbo interface returns the following message, with
> >> errorMsg displayed normally
> >>
> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "成功"
> >> >>   }
> >>
> >> >> }
> >>
> >>
> >> Access to the back-end interface via soul
> >>
> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "??"
> >> >>   }
> >> >> }
> >> Code Trace Discovery
> >>
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> >>
> >> The result of the execution is already garbled, and still not solved by
> >> urldecode transcoding
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
> >> >Hi,
> >> >
> >> >Can you translate your question to English?
> >> >
> >> >--
> >> >
> >> >Zhang Yonglun
> >> >Apache ShenYu (Incubating)
> >> >Apache ShardingSphere
> >> >
> >> >
> >> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
> >> >
> >> >> soul 版本 2.3.0
> >> >> dubbo后端服务 dubbo版本为 2.7.6
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
> >> >>
> >> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "成功"
> >> >>   }
> >> >> }
> >> >>
> >> >>
> >> >> 通过soul 访问后端接口
> >> >>
> >> >>
> >> >> {
> >> >>   "msg": "SUCCESS",
> >> >>   "code": "0000",
> >> >>   "flag": "S",
> >> >>   "data": {
> >> >>     "orderId": "367131013865906176",
> >> >>     "orderStatus": 1,
> >> >>     "signUrl": null,
> >> >>     "externalOrderId": "311212112312313",
> >> >>     "originalUrl": "",
> >> >>     "templateId": 20002,
> >> >>     "errorMsg": "??"
> >> >>   }
> >> >> }
> >> >>
> >> >>
> >> >> 代码跟踪 发现
> >> >>
> >>
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> >> >> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
> >>
>

Re: soul调dubbo后端服务响应报文中文乱码

Posted by 张磊 <zh...@gmail.com>.
Hi,  Please check whether the calling result of the Dubboplug is garbled

Object result = alibabaDubboProxyService.genericInvoker(param, metaData);


> 2021年5月24日 下午4:26,sdf <lf...@163.com> 写道:
> 
> 
> 
> 
> Direct requests to the dubbo service without going through the gateway will not mess up the code, only requests through shenyu will mess up the code
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 在 2021-05-24 16:04:02,"XiaoYu" <xi...@apache.org> 写道:
>> Hi sdf
>> 
>> in DubboResponsePlugin,  the result provide by Apache dubbo,
>> 
>> You can see if this result has been garbled.  code like this :
>> 
>> final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);
>> 
>> 
>> 
>> sdf <lf...@163.com> 于2021年5月24日周一 下午3:49写道:
>> 
>>> 
>>> 
>>> 
>>> soul tuning dubbo backend service response message Chinese messy code
>>> 
>>> 
>>> soul version 2.3.0
>>> dubbo backend service dubbo version is 2.7.6
>>> 
>>> 
>>> Direct access to the dubbo interface returns the following message, with
>>> errorMsg displayed normally
>>> 
>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "成功"
>>>>>  }
>>> 
>>>>> }
>>> 
>>> 
>>> Access to the back-end interface via soul
>>> 
>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "??"
>>>>>  }
>>>>> }
>>> Code Trace Discovery
>>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>>> 
>>> The result of the execution is already garbled, and still not solved by
>>> urldecode transcoding
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
>>>> Hi,
>>>> 
>>>> Can you translate your question to English?
>>>> 
>>>> --
>>>> 
>>>> Zhang Yonglun
>>>> Apache ShenYu (Incubating)
>>>> Apache ShardingSphere
>>>> 
>>>> 
>>>> sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
>>>> 
>>>>> soul 版本 2.3.0
>>>>> dubbo后端服务 dubbo版本为 2.7.6
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
>>>>> 
>>>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "成功"
>>>>>  }
>>>>> }
>>>>> 
>>>>> 
>>>>> 通过soul 访问后端接口
>>>>> 
>>>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "??"
>>>>>  }
>>>>> }
>>>>> 
>>>>> 
>>>>> 代码跟踪 发现
>>>>> 
>>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>>>>> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
>>> 


Re:Re: Re: soul调dubbo后端服务响应报文中文乱码

Posted by sdf <lf...@163.com>.


Direct requests to the dubbo service without going through the gateway will not mess up the code, only requests through shenyu will mess up the code














在 2021-05-24 16:04:02,"XiaoYu" <xi...@apache.org> 写道:
>Hi sdf
>
>in DubboResponsePlugin,  the result provide by Apache dubbo,
>
>You can see if this result has been garbled.  code like this :
>
>final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);
>
>
>
>sdf <lf...@163.com> 于2021年5月24日周一 下午3:49写道:
>
>>
>>
>>
>> soul tuning dubbo backend service response message Chinese messy code
>>
>>
>> soul version 2.3.0
>> dubbo backend service dubbo version is 2.7.6
>>
>>
>> Direct access to the dubbo interface returns the following message, with
>> errorMsg displayed normally
>>
>>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "成功"
>> >>   }
>>
>> >> }
>>
>>
>> Access to the back-end interface via soul
>>
>>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "??"
>> >>   }
>> >> }
>> Code Trace Discovery
>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>>
>> The result of the execution is already garbled, and still not solved by
>> urldecode transcoding
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
>> >Hi,
>> >
>> >Can you translate your question to English?
>> >
>> >--
>> >
>> >Zhang Yonglun
>> >Apache ShenYu (Incubating)
>> >Apache ShardingSphere
>> >
>> >
>> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
>> >
>> >> soul 版本 2.3.0
>> >> dubbo后端服务 dubbo版本为 2.7.6
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
>> >>
>> >>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "成功"
>> >>   }
>> >> }
>> >>
>> >>
>> >> 通过soul 访问后端接口
>> >>
>> >>
>> >> {
>> >>   "msg": "SUCCESS",
>> >>   "code": "0000",
>> >>   "flag": "S",
>> >>   "data": {
>> >>     "orderId": "367131013865906176",
>> >>     "orderStatus": 1,
>> >>     "signUrl": null,
>> >>     "externalOrderId": "311212112312313",
>> >>     "originalUrl": "",
>> >>     "templateId": 20002,
>> >>     "errorMsg": "??"
>> >>   }
>> >> }
>> >>
>> >>
>> >> 代码跟踪 发现
>> >>
>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>> >> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
>>

Re: Re: soul调dubbo后端服务响应报文中文乱码

Posted by XiaoYu <xi...@apache.org>.
Hi sdf

in DubboResponsePlugin,  the result provide by Apache dubbo,

You can see if this result has been garbled.  code like this :

final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);



sdf <lf...@163.com> 于2021年5月24日周一 下午3:49写道:

>
>
>
> soul tuning dubbo backend service response message Chinese messy code
>
>
> soul version 2.3.0
> dubbo backend service dubbo version is 2.7.6
>
>
> Direct access to the dubbo interface returns the following message, with
> errorMsg displayed normally
>
>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "成功"
> >>   }
>
> >> }
>
>
> Access to the back-end interface via soul
>
>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "??"
> >>   }
> >> }
> Code Trace Discovery
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>
> The result of the execution is already garbled, and still not solved by
> urldecode transcoding
>
>
>
>
>
>
>
>
>
>
> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
> >Hi,
> >
> >Can you translate your question to English?
> >
> >--
> >
> >Zhang Yonglun
> >Apache ShenYu (Incubating)
> >Apache ShardingSphere
> >
> >
> >sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
> >
> >> soul 版本 2.3.0
> >> dubbo后端服务 dubbo版本为 2.7.6
> >>
> >>
> >>
> >>
> >>
> >>
> >> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
> >>
> >>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "成功"
> >>   }
> >> }
> >>
> >>
> >> 通过soul 访问后端接口
> >>
> >>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "??"
> >>   }
> >> }
> >>
> >>
> >> 代码跟踪 发现
> >>
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> >> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
>

Re:Re: soul调dubbo后端服务响应报文中文乱码

Posted by sdf <lf...@163.com>.


soul tuning dubbo backend service response message Chinese messy code


soul version 2.3.0
dubbo backend service dubbo version is 2.7.6


Direct access to the dubbo interface returns the following message, with errorMsg displayed normally


>> {
>>   "msg": "SUCCESS",
>>   "code": "0000",
>>   "flag": "S",
>>   "data": {
>>     "orderId": "367131013865906176",
>>     "orderStatus": 1,
>>     "signUrl": null,
>>     "externalOrderId": "311212112312313",
>>     "originalUrl": "",
>>     "templateId": 20002,
>>     "errorMsg": "成功"
>>   }

>> }


Access to the back-end interface via soul


>> {
>>   "msg": "SUCCESS",
>>   "code": "0000",
>>   "flag": "S",
>>   "data": {
>>     "orderId": "367131013865906176",
>>     "orderStatus": 1,
>>     "signUrl": null,
>>     "externalOrderId": "311212112312313",
>>     "originalUrl": "",
>>     "templateId": 20002,
>>     "errorMsg": "??"
>>   }
>> }
Code Trace Discovery
org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute

The result of the execution is already garbled, and still not solved by urldecode transcoding 










在 2021-05-24 15:33:11,"Zhang Yonglun" <zh...@apache.org> 写道:
>Hi,
>
>Can you translate your question to English?
>
>--
>
>Zhang Yonglun
>Apache ShenYu (Incubating)
>Apache ShardingSphere
>
>
>sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:
>
>> soul 版本 2.3.0
>> dubbo后端服务 dubbo版本为 2.7.6
>>
>>
>>
>>
>>
>>
>> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
>>
>>
>> {
>>   "msg": "SUCCESS",
>>   "code": "0000",
>>   "flag": "S",
>>   "data": {
>>     "orderId": "367131013865906176",
>>     "orderStatus": 1,
>>     "signUrl": null,
>>     "externalOrderId": "311212112312313",
>>     "originalUrl": "",
>>     "templateId": 20002,
>>     "errorMsg": "成功"
>>   }
>> }
>>
>>
>> 通过soul 访问后端接口
>>
>>
>> {
>>   "msg": "SUCCESS",
>>   "code": "0000",
>>   "flag": "S",
>>   "data": {
>>     "orderId": "367131013865906176",
>>     "orderStatus": 1,
>>     "signUrl": null,
>>     "externalOrderId": "311212112312313",
>>     "originalUrl": "",
>>     "templateId": 20002,
>>     "errorMsg": "??"
>>   }
>> }
>>
>>
>> 代码跟踪 发现
>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~

Re: soul调dubbo后端服务响应报文中文乱码

Posted by Zhang Yonglun <zh...@apache.org>.
Hi,

Can you translate your question to English?

--

Zhang Yonglun
Apache ShenYu (Incubating)
Apache ShardingSphere


sdf <lf...@163.com> 于2021年5月24日周一 下午3:30写道:

> soul 版本 2.3.0
> dubbo后端服务 dubbo版本为 2.7.6
>
>
>
>
>
>
> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
>
>
> {
>   "msg": "SUCCESS",
>   "code": "0000",
>   "flag": "S",
>   "data": {
>     "orderId": "367131013865906176",
>     "orderStatus": 1,
>     "signUrl": null,
>     "externalOrderId": "311212112312313",
>     "originalUrl": "",
>     "templateId": 20002,
>     "errorMsg": "成功"
>   }
> }
>
>
> 通过soul 访问后端接口
>
>
> {
>   "msg": "SUCCESS",
>   "code": "0000",
>   "flag": "S",
>   "data": {
>     "orderId": "367131013865906176",
>     "orderStatus": 1,
>     "signUrl": null,
>     "externalOrderId": "311212112312313",
>     "originalUrl": "",
>     "templateId": 20002,
>     "errorMsg": "??"
>   }
> }
>
>
> 代码跟踪 发现
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~