BubikolRamios
07-24-2008, 07:32 AM
to avoid tomcat default encoding I added this into server.xml
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8" />
I m sending some text via ajax to receiving jsp which looks like this:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%
String p1 = request.getParameter("p1");
java.io.PrintWriter out1 = null;
out1.write(p1);
out1.close();
"%>
now the first line ensures that everythig works as expected i.e I send 'čšž' and get back 'čšž' . I can even change view/encoding in FF to whatewer setting and all woks ok as far we are talking FF
IE (7 in my case) another story, view/encoding seems breaks ewerything each time, also default UTF-8 does not work.
The only way to get back 'čšž' is: view/encoding/autoselect which turns 'čšž'
into a bunch of other characters, send it and get back 'čšž'.
test page: http://agrozoo.net/AgroZoo10/jsp/test2.jsp
How to get this working on IE ?
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8" />
I m sending some text via ajax to receiving jsp which looks like this:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%
String p1 = request.getParameter("p1");
java.io.PrintWriter out1 = null;
out1.write(p1);
out1.close();
"%>
now the first line ensures that everythig works as expected i.e I send 'čšž' and get back 'čšž' . I can even change view/encoding in FF to whatewer setting and all woks ok as far we are talking FF
IE (7 in my case) another story, view/encoding seems breaks ewerything each time, also default UTF-8 does not work.
The only way to get back 'čšž' is: view/encoding/autoselect which turns 'čšž'
into a bunch of other characters, send it and get back 'čšž'.
test page: http://agrozoo.net/AgroZoo10/jsp/test2.jsp
How to get this working on IE ?