> I need your interface definition to find out the problem And make sure
> `@Produces({"application/json; charset=UTF-8", "text/xml; charset=UTF-8"})`
> is set to your interface.
是的,我确定接口上有注释@@Produces({"application/json; charset=UTF-8", "text/xml;
charset=UTF-8"}),但是依然有乱码,最后我发现参数解码的时候使用的是默认的ISO-8859-1编码(见org.apache.tomcat.util.http.Parameters),需要设置request的编码方式,实现ContainerRequestFilter的filter方法,在RpcContext上下文中设置HttpServletRequest的CharacterEncoding,建议这部分写到源码中!
[ Full content available at:
https://github.com/apache/incubator-dubbo/issues/2732 ]
This message was relayed via gitbox.apache.org for
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]