I have an app, written in Struts+JSP.
Encoding works perfectly, no rpoblem with the special
characters/requests/responses.
Except for one annoying thing.

My JSP pages use includes:
  <[EMAIL PROTECTED] file="../someFile.jsp"%>

Some pages include 3-5 other pages.
They are all (top level + included pages) saved as UTF-8, and their
content starts with the FFFE sequence.
In the rendered content I can see that these FFFE headers are included
with the child pages.
 [FFFE]
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD  ......
 ...
 <body>
    ....
    [FFFE] included content1
    [FFFE] included content2


With these FFFEs Internet Explorer displays extra line breaks on the
top of the page.
My content is a perfectly valid XHTML, but with strange FFFE sequences inside.

Java files generated by tomcat always start the response content with:
  out.write('');
also for the included content.

I am using the latest Tomcat 5.5 version, Java 1.5, Windows XP.

Any hints how to get rid of these extra FFFE chars?
My included files need to be UTF-8 encoded.

Darek

Reply via email to