Hi All
I facing a bit of problem with the Spring/JSP UTF-8 problem when trying to retrieve full message content. It seems the comments are getting stored perfectly in database but somehow method Comment.getFullMessage content is replaced with malformed bytes.I have CharacterEncoding filter set forced to UTF-8. Other parts are working well.
I tried almost everything, can somebody help me please !!
// all comments
for (HistoricTaskInstance taskInst : historyTaskList) {
Iterator<Comment> commentIterator = taskService.getTaskComments(taskInst.getId()).listIterator();
while (commentIterator.hasNext()) {
Comment comment = commentIterator.next();
User user = getUser(comment.getUserId());
CommentDto cDto = new CommentDto(comment, user);
System.out.println("Byte " + comment.getFullMessage());
commentListDto.add(cDto);
}
}