@RequestMapping("bySubject") public ResponseEntity<List<Topic>> findTopics( HttpServletRequest request, @RequestParam String subject) throws Exception { subject = new String(subject.getBytes("iso-8859-1"), "utf-8"); List<Topic> topics = topicDao.findTopicBySubject(subject, 1); return new ResponseEntity<List<Topic>>(topics, HttpStatus.OK); }