diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-17 06:55:26 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-17 06:55:26 +0000 |
commit | f409db60be4fa9dd8da8956acbfbe9a3509adf6a (patch) | |
tree | 06c42701ee8953ae2ea0f9df7db958e9357a416c /src/com/itmill/toolkit/terminal/gwt/server | |
parent | ebf1e70e9b288351be4ec85eb51fd43c4a860ed1 (diff) | |
download | vaadin-framework-f409db60be4fa9dd8da8956acbfbe9a3509adf6a.tar.gz vaadin-framework-f409db60be4fa9dd8da8956acbfbe9a3509adf6a.zip |
switched setCharacterEncoding to use servlet 2.3 style code
svn changeset:6240/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal/gwt/server')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java index 47b2ae3cc0..02f89983b9 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java @@ -837,11 +837,10 @@ public class ApplicationServlet extends HttpServlet { if (!fragment) { // Window renders are not cacheable - response.setCharacterEncoding("utf-8"); response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires", 0); - response.setContentType("text/html"); + response.setContentType("text/html; charset=UTF-8"); // write html header page.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD " |