strange character add at jsp <%@include %>

Just do the very simple thing at a JRun server, and there are something like,

<%@ include file=”” %>

for including the header and footer.

But find that there are some strange “white space” add before the the included code, and broken the layout.

At last, find that there are the BOM of the UTF-8 file, and use Notepad++, change the encoding to “UTF-8 without BOM”, than the white space (BOM) is gone, an the layout behave as expect.

64 comments to strange character add at jsp <%@include %>

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>