0

I am using Java/Spring and JSON. Saving Hebrew content is working well, I can see the text well on the data-store (stored as Text object).

From some reason I can not retrieve it well, all Hebrew characters turn to question marks.

Here is the server side code to demo the issue:

@RequestMapping(value="/SomeAction.html", method = RequestMethod.POST, produces="application/json;charset=UTF-8")
@ResponseBody
public String getQuestion(HttpServletRequest request, 
        HttpServletResponse response){
    String qKey = request.getParameter("key");
    Question q = new Question();
    q.setKey(qKey);
    Question question = QuestionUtils.getQuestionDetails(q);
    log.warn(question.getBody());
    return question.getBody()
}

In the logging I can see the hebrew very well. In the web-site I only see question marks.

Appreciate any help

Mangu
  • 3,160
  • 2
  • 25
  • 42
Uri Lukach
  • 1,093
  • 1
  • 14
  • 28

0 Answers0