jersey web service json utf-8 encoding

后端 未结 7 2011
执笔经年
执笔经年 2020-12-08 00:28

I made a small Rest webservice using Jersey 1.11. When i call the url that returns Json, there are problems with the character encoding for non english characters. The corre

相关标签:
7条回答
  • 2020-12-08 01:09

    You can also try this :

    return Response.ok(responseMessage, "application/json;charset=UTF-8").build();
    
    0 讨论(0)
提交回复
热议问题