* I2CP: Fix the SessionConfig serializer in DataHelper,

so that UTF-8 tunnel names are not corrupted by
      I2CP and can be displayed on the console
    * Fix UTF-8 form submission on console and i2ptunnel
This commit is contained in:
zzz
2009-08-20 22:22:07 +00:00
parent 6d3a5856b4
commit 37437da34d
5 changed files with 72 additions and 13 deletions

View File

@ -6,6 +6,10 @@
* This is included almost 30 times, so keep whitespace etc. to a minimum.
*/
// http://www.crazysquirrel.com/computing/general/form-encoding.jspx
if (request.getCharacterEncoding() == null)
request.setCharacterEncoding("UTF-8");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);