JSTL c:import doesnt show UTF-8 characters properly..
843840Feb 17 2010 — edited Feb 18 2010Friends,
I need your help...
I'm using c:import tag to display spanish language charcters(s años etc..)
Here is my setup -
I have two jsps - in first jsp I'm using c:import and passing a value to included jsp as param...
a.jsp ----
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<c:import url="b.jsp">
<c:param name="param1">
s años - s años
</c:param>
</c:import>
displaying above param value in b.jsp as below -
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Simple jsp page</title></head>
<body>
Place your content here - <c:out value="${param.param1}" />
</body>
</html>
When I access a.jsp, I'm getting questions marks(?s a??nos) - but it works fine when I don't use c:import
I have followinging setup to enable UTF-8 charcters
1. Configured UTF-8 encoding in weblogic.xml
2. Configured in Oracle database to accept UTF-8 charcters..
Can you please tell me, where I'm doing wrong?? I have existing code which uses c:import jstl tag and I can't get rid of c:import at this point of time..I have to make it working..
I would appreciate your help! - Thanks in advance.
Viru
Edited by: vhosamath on Feb 17, 2010 5:23 PM