Google App Engine / Java - 希伯来语作为问号到达

时间:2018-03-22 11:04:04

标签: java json spring-mvc google-app-engine character-encoding

我正在使用Java / Spring和JSON。保存希伯来语内容效果很好,我可以在数据存储上很好地看到文本(存储为Text对象)。

由于某种原因,我无法很好地检索它,所有希伯来字符都转向问号。

以下是演示此问题的服务器端代码:

@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()
}

在伐木中,我可以很好地看到希伯来语。在网站上我只看到问号。

感谢任何帮助

0 个答案:

没有答案