import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
private Template content;
- public StaticPage(String title, InputStream content) {
+ public StaticPage(String title, InputStream content) throws UnsupportedEncodingException {
super(title);
- this.content = new Template(new InputStreamReader(content));
+ this.content = new Template(new InputStreamReader(content, "UTF-8"));
}
@Override