diff --git a/htroot/Blog.java b/htroot/Blog.java
index bb6468822..5571b6154 100644
--- a/htroot/Blog.java
+++ b/htroot/Blog.java
@@ -30,7 +30,6 @@
// javac -classpath .:../classes Blog.java
// if the shell's current path is HTROOT
-import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
@@ -119,11 +118,7 @@ public class Blog {
}
byte[] author;
- try {
- author = StrAuthor.getBytes("UTF-8");
- } catch (final UnsupportedEncodingException e) {
- author = StrAuthor.getBytes();
- }
+ author = UTF8.getBytes(StrAuthor);
if (hasRights && post.containsKey("delete") && "sure".equals(post.get("delete"))) {
page = sb.blogDB.readBlogEntry(pagename);
@@ -141,11 +136,7 @@ public class Blog {
if (post.containsKey("submit") && hasRights) {
// store a new/edited blog-entry
byte[] content;
- try {
- content = post.get("content", "").getBytes("UTF-8");
- } catch (final UnsupportedEncodingException e) {
- content = post.get("content", "").getBytes();
- }
+ content = UTF8.getBytes(post.get("content", ""));
final Date date;
List comments = null;
@@ -162,11 +153,7 @@ public class Blog {
final String commentMode = post.get("commentMode", "2");
final String StrSubject = post.get("subject", "");
byte[] subject;
- try {
- subject = StrSubject.getBytes("UTF-8");
- } catch (final UnsupportedEncodingException e) {
- subject = StrSubject.getBytes();
- }
+ subject = UTF8.getBytes(StrSubject);
sb.blogDB.writeBlogEntry(sb.blogDB.newEntry(pagename, subject, author, ip, date, content, comments, commentMode));
diff --git a/htroot/BlogComments.java b/htroot/BlogComments.java
index 688c6a5a9..eafa1203a 100644
--- a/htroot/BlogComments.java
+++ b/htroot/BlogComments.java
@@ -32,7 +32,6 @@
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
-import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
@@ -104,11 +103,7 @@ public class BlogComments {
}
byte[] author;
- try {
- author = StrAuthor.getBytes("UTF-8");
- } catch (final UnsupportedEncodingException e) {
- author = StrAuthor.getBytes();
- }
+ author = UTF8.getBytes(StrAuthor);
final BlogBoard.BlogEntry page = sb.blogDB.readBlogEntry(pagename); //maybe "if(page == null)"
final boolean pageExists = sb.blogDB.contains(pagename);
@@ -123,22 +118,14 @@ public class BlogComments {
if ("".equals(post.get("subject", ""))) {
post.putHTML("subject", "no title");
}
- try {
- content = post.get("content", "").getBytes("UTF-8");
- } catch (final UnsupportedEncodingException e) {
- content = post.get("content", "").getBytes();
- }
+ content = UTF8.getBytes(post.get("content", ""));
final Date date = null;
//set name for new entry or date for old entry
final String StrSubject = post.get("subject", "");
byte[] subject;
- try {
- subject = StrSubject.getBytes("UTF-8");
- } catch (final UnsupportedEncodingException e) {
- subject = StrSubject.getBytes();
- }
+ subject = UTF8.getBytes(StrSubject);
final String commentID = String.valueOf(System.currentTimeMillis());
final BlogEntry blogEntry = sb.blogDB.readBlogEntry(pagename);
blogEntry.addComment(commentID);
diff --git a/htroot/ConfigPortal.html b/htroot/ConfigPortal.html
index 3405b322c..872fa27bd 100644
--- a/htroot/ConfigPortal.html
+++ b/htroot/ConfigPortal.html
@@ -5,7 +5,7 @@
YaCy '#[clientname]#': Integration of a Search Portal
#%env/templates/metas.template%#
-
+
#%env/templates/header.template%#
#%env/templates/submenuPortalIntegration.template%#
Integration of a Search Portal
@@ -15,11 +15,11 @@
and a link to a home page that is reached when the 'corporate identity'-images are clicked.
To change also colours and styles use the Appearance Servlet for different skins and languages.
-