Skip to content

Commit

Permalink
fixed encoding for similar questions suggestions box
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Jun 23, 2017
1 parent 036cb64 commit dbeed6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public void getSimilarAjax(@PathVariable String like, HttpServletRequest req, Ht
sb.append("</span> <a href=\"").append(similarPost.getPostLink(false, false)).append("\">");
sb.append(similarPost.getTitle()).append("</a><br>");
}
res.setCharacterEncoding("UTF-8");
res.getWriter().print(sb.toString());
res.setStatus(200);
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/templates/question.vm
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@
<div class="card-panel similar mbl mediumText">
<div class="mbl">$!lang.get("posts.similar")</div>
#foreach($showSimilar in $similarquestions)
#set($plink = "#getpostlink($showSimilar false false)")
<div>
<small><i class="fa fa-caret-right grey-text"></i></small>
<a href="$plink" class="smallText">$!showSimilar.title</a>
<a href="#getpostlink($showSimilar false false)" class="smallText">$!showSimilar.title</a>
</div>
#end
</div>
Expand Down

0 comments on commit dbeed6d

Please sign in to comment.