> Try putting the page contenttype declaration as the first line in every
tile. It has to be done before > any output is sent to response.

Thanks but I tried this and it doesn't work, something seems to over-ride my
settings.

I finally found a way of getting this to work. Before, no matter where I put
the contenttype code, it seemed to get over-written. Since you should not be
able to change the headers after the outputstream has been used, I tried
setting it and then calling flush which seems to work. I still don't
understand why my original code didn't work but I'm getting the correct
encoding now.

// Old way - didn't work
<%@ page contentType="text/html;charset=UTF-8"  pageEncoding="utf-8" %>
<%@ include file="/common/include/init.jsp" %>
.. Content ..

// New way - works
<%@ include file="/common/include/headers.jsp" %>
<%@ include file="/common/include/init.jsp" %>
.. Content ..

// headers.jsp
<%@ page contentType="text/html;charset=UTF-8"  pageEncoding="utf-8" %>
<% out.flush(); %>

// init.jsp
Tag libs & resource/locale init code, no headers are set


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

Reply via email to