diff options
author | Vitaly Takmazov | 2016-12-16 15:41:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-16 15:41:14 +0300 |
commit | 300a0439b2a6e26d9025247ef780c886616d4ae1 (patch) | |
tree | bcdb7613c2c5f37b870cbe18241894dba9428fae /juick-www/src/main/java/com/juick/www/PageTemplates.java | |
parent | 18a8595d2150edc92084c94b9dbb8f4309d3ed36 (diff) |
CharEncoding.UTF_8
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/PageTemplates.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/PageTemplates.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/PageTemplates.java b/juick-www/src/main/java/com/juick/www/PageTemplates.java index 72d58e70..068da3c1 100644 --- a/juick-www/src/main/java/com/juick/www/PageTemplates.java +++ b/juick-www/src/main/java/com/juick/www/PageTemplates.java @@ -23,6 +23,7 @@ import com.juick.server.TagQueries; import com.juick.server.UserQueries; import com.juick.server.helpers.TagStats; import com.juick.util.MessageUtils; +import org.apache.commons.lang3.CharEncoding; import org.apache.commons.lang3.StringEscapeUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -190,7 +191,7 @@ public class PageTemplates { for (TagStats tag : tags) { String tagName = StringEscapeUtils.escapeHtml4(tag.getTag().getName()); try { - ret += "<a href=\"/tag/" + URLEncoder.encode(tag.getTag().getName(), "utf-8") + "\""; + ret += "<a href=\"/tag/" + URLEncoder.encode(tag.getTag().getName(), CharEncoding.UTF_8) + "\""; if (tag.getUsageCount() < 2) { ret += " rel=\"nofollow\""; } |