forked from I2P_Developers/i2p.i2p
fix encoding issues
This commit is contained in:
@@ -1202,6 +1202,8 @@ public class WebMail extends HttpServlet
|
|||||||
private void processRequest( HttpServletRequest httpRequest, HttpServletResponse response )
|
private void processRequest( HttpServletRequest httpRequest, HttpServletResponse response )
|
||||||
throws IOException, ServletException
|
throws IOException, ServletException
|
||||||
{
|
{
|
||||||
|
httpRequest.setCharacterEncoding("UTF-8");
|
||||||
|
response.setCharacterEncoding("UTF-8");
|
||||||
RequestWrapper request = new RequestWrapper( httpRequest );
|
RequestWrapper request = new RequestWrapper( httpRequest );
|
||||||
|
|
||||||
SessionObject sessionObject = null;
|
SessionObject sessionObject = null;
|
||||||
@@ -1268,13 +1270,18 @@ public class WebMail extends HttpServlet
|
|||||||
subtitle = _("Show Message");
|
subtitle = _("Show Message");
|
||||||
|
|
||||||
response.setContentType( "text/html" );
|
response.setContentType( "text/html" );
|
||||||
out.println( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>" );
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* write header
|
* write header
|
||||||
*/
|
*/
|
||||||
out.println( "<head>\n<title>susimail v0." + version + " - " + subtitle +
|
out.println( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n" +
|
||||||
"</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css.css\">\n</head>\n<body>\n<div class=\"page\"><p><img src=\"susimail.png\" alt=\"Susimail\"><br> </p>\n<form method=\"POST\" enctype=\"multipart/form-data\" action=\"" + myself + "\">" );
|
"<head>\n" +
|
||||||
|
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
|
||||||
|
"<title>susimail - " + subtitle + "</title>\n" +
|
||||||
|
"<link rel=\"stylesheet\" type=\"text/css\" href=\"css.css\">\n" +
|
||||||
|
"</head>\n<body>\n" +
|
||||||
|
"<div class=\"page\"><p><img src=\"susimail.png\" alt=\"Susimail\"><br> </p>\n" +
|
||||||
|
"<form method=\"POST\" enctype=\"multipart/form-data\" action=\"" + myself + "\">" );
|
||||||
|
|
||||||
if( sessionObject.error != null && sessionObject.error.length() > 0 ) {
|
if( sessionObject.error != null && sessionObject.error.length() > 0 ) {
|
||||||
out.println( "<p class=\"error\">" + sessionObject.error + "</p>" );
|
out.println( "<p class=\"error\">" + sessionObject.error + "</p>" );
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
2011-08-21 zzz
|
||||||
|
* RateStat: Cleanups and javadoc fixes
|
||||||
|
* susimail: Fix page encoding
|
||||||
|
|
||||||
2011-08-20 zzz
|
2011-08-20 zzz
|
||||||
* Translations:
|
* Translations:
|
||||||
- New Danish and Ukranian translations from transifex
|
- New Danish and Ukranian translations from transifex
|
||||||
|
@@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 26;
|
public final static long BUILD = 27;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
Reference in New Issue
Block a user