diff --git a/src/main/java/com/erudika/scoold/controllers/QuestionsController.java b/src/main/java/com/erudika/scoold/controllers/QuestionsController.java index 9be27c76..436542ef 100755 --- a/src/main/java/com/erudika/scoold/controllers/QuestionsController.java +++ b/src/main/java/com/erudika/scoold/controllers/QuestionsController.java @@ -99,6 +99,7 @@ public void getSimilarAjax(@PathVariable String like, HttpServletRequest req, Ht sb.append(" "); sb.append(similarPost.getTitle()).append("
"); } + res.setCharacterEncoding("UTF-8"); res.getWriter().print(sb.toString()); res.setStatus(200); } diff --git a/src/main/resources/templates/question.vm b/src/main/resources/templates/question.vm index 9e3efd9e..1d86a03b 100755 --- a/src/main/resources/templates/question.vm +++ b/src/main/resources/templates/question.vm @@ -105,10 +105,9 @@
$!lang.get("posts.similar")
#foreach($showSimilar in $similarquestions) - #set($plink = "#getpostlink($showSimilar false false)")
- $!showSimilar.title + $!showSimilar.title
#end