JSON character encoding

后端 未结 10 1032
春和景丽
春和景丽 2020-11-27 14:14

My Java web application submits an AJAX request that returns JSON such:

{\'value\': \'aériennes\'}

When \'aériennes\' is displayed in the w

10条回答
  •  感动是毒
    2020-11-27 15:11

    finally I got the solution:

    Only put this line

    @RequestMapping(value = "/YOUR_URL_Name",method = RequestMethod.POST,produces = "application/json; charset=utf-8")
    

    this will definitely help.

提交回复
热议问题