Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL c:import doesnt show UTF-8 characters properly..

843840Feb 17 2010 — edited Feb 18 2010
Friends,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2010
Added on Feb 17 2010
6 comments
2,422 views