L
Live DVB
I'm having this encoding issue that drives me nuts.
Basically there's a form:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
(...)
head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
</head>
(...)
<h1> Header: Å¡ ć Ä‘ Ä <h1>
<% out.println("Print: " + request.getParameter("txtArea")); %>
<form method="post" action="newjsp.jsp">
<textarea name="txtArea">Å¡ ć Ä‘ Ä</textarea>
<input type="submit" value="Submit"/>
</form>
--
1) When i press submit it prints out " š ć đ Ġ"
2) If I change encoding from UTF-8 to Windows-1250, I get lots of
question marks: ? ? ? ?
3) If i change encoding from UTF-8 to iso-8859-1, the data prints ok,
but <h1> Header: Å¡ ć Ä‘ Ä <h1> becomes <h1> Header: ? ? ? ? <h1>
4) If I change method to GET with utf-8 encoding everything's fine
p.s. "Å¡ ć Ä‘ Ä" are croatian letters
Basically there's a form:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
(...)
head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
</head>
(...)
<h1> Header: Å¡ ć Ä‘ Ä <h1>
<% out.println("Print: " + request.getParameter("txtArea")); %>
<form method="post" action="newjsp.jsp">
<textarea name="txtArea">Å¡ ć Ä‘ Ä</textarea>
<input type="submit" value="Submit"/>
</form>
--
1) When i press submit it prints out " š ć đ Ġ"
2) If I change encoding from UTF-8 to Windows-1250, I get lots of
question marks: ? ? ? ?
3) If i change encoding from UTF-8 to iso-8859-1, the data prints ok,
but <h1> Header: Å¡ ć Ä‘ Ä <h1> becomes <h1> Header: ? ? ? ? <h1>
4) If I change method to GET with utf-8 encoding everything's fine
p.s. "Å¡ ć Ä‘ Ä" are croatian letters