java how to decode get url parameter received throw BeanParam

后端 未结 2 1410
清歌不尽
清歌不尽 2021-01-11 11:47

I receive a GET response to this web service

@GET
@Path(\"/nnnnnn\")
public Response pfpfpfpf(@BeanParam NNNNNN n)

The cla

2条回答
  •  猫巷女王i
    2021-01-11 11:57

    The solution that works for me is :

    on the servlet, i should do this:

    request.setCharacterEncoding("UTF-8");
    

    and then on the html page i had to add this:

    
    

提交回复
热议问题