I tested with Russian and now I don't have nomore problems with this
kind of properties file contents either:

test=\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f
\u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f
\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f

I am using c:import and not c:redirect

To my mind ?????? refers to a situation that you have lost your
properties key at this point as if there is a non-existing key (e.g.
"missing.key") you'll see results like ???missing.key???

Are your keys always ASCII? If they weren't something odd might happen.

Marketta

-----Original Message-----
From: Dima Gutzeit [mailto:[EMAIL PROTECTED] 
Sent: 24. helmikuuta 2004 15:13
To: [EMAIL PROTECTED]
Subject: Re: Output encoding of JSP pages


I've done it , but still I can see only "??????".
It happens when the .properties file is not with "latin" letters but
with encoded with native2ascii.

the most instresting part is that the very first page of the application
is OK, the ???? issue starts after first <c:redirect>.

----- Original Message ----- 
From: "Priha Marketta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 23, 2004 16:23
Subject: Re: Output encoding of JSP pages


Dima,
For some reason I can't find the link to reply to the mailing list
directly so would you mind sharing this answer with others by copying it
to the mailing list.

I struggled with the same encoding problem. I have two JSP pages
(file1.jsp and file2.jsp) both having a definition: <[EMAIL PROTECTED]
contentType="text/html;charset=UTF-8" language="java" %>

if I wrote in file1.jsp
<jsp:include page="file2.jsp" />
the UTF-8 encoding worked just fine

but if I wrote in file1.jsp
<c:import url="file2.jsp" />
the UTF-8 encoding didn't work

Then I found the answer inhere
http://www.mail-archive.com/[EMAIL PROTECTED]/msg05218.htm
l
and I added to my import
<c:import url="file2.jsp" charEncoding="UTF-8" />
and now the encoding works also with c:import

(I read the JSTL spec again but really couldn't figure out do I really
have to have the encoding defined three times but who cares)

Marketta



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to