res.setContentType("text/html; charset=ISO-8859-4");
res.setContentType("text/html");
    protected void handleException(HttpServletRequest req,                                    HttpServletResponse res, Throwable e)     {        try {            if (errorFrame == null) {                errorFrame = new SFrame();                /*                 * if we don't have an errorTemplateFile defined, then this                 * will throw an Exception, so the StackTrace is NOT exposed                 * to the user (may be security relevant)                 */                errorFrame.getContentPane().                    setLayout(new STemplateLayout(errorTemplateFile));                errorStackTraceLabel = new SLabel();                errorFrame.getContentPane().add(errorStackTraceLabel,                                                "EXCEPTION_STACK_TRACE");                errorMessageLabel = new SLabel();                errorFrame.getContentPane().add(errorMessageLabel,                                                "EXCEPTION_MESSAGE");            }            res.setContentType("text/html; charset=ISO-8859-4");            ServletOutputStream out = res.getOutputStream();            errorStackTraceLabel.setText(DebugUtil.getStackTraceString(e));            errorMessageLabel.setText(e.getMessage());            errorFrame.write(new ServletDevice (out));        }        catch (Exception ex) {}    }