[opencms-dev] Problems through Byte-Order Mark

Yves Glodt yg at mind.lu
Tue Dec 23 15:25:55 CET 2008


Hello,

I have a weird problem, and I noticed about only when I tried to validate my 
produced html.

It seems one of my templates has a BOM [1], and I found no way to remove it. 
Strangely the BOM seems to create rendering problems for jsp pages which make 
use of my template. "Normal" xmlpages which use the same template do not suffer 
from any problems.

The errors from the validator are these:

 Line 1, Column 0: character "" not allowed in prolog.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w 

 Line 14, Column 0: character data is not allowed here.
<body> 

 Line 1, Column 3: XML Parsing Error: Start tag expected, '<' not found.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w

Note that I have a second template in my project which works fine and does not 
create rendering errors, and also does not have the BOM

How can I remove the BOM from an OpenCms jsp page?

Best regards,
Yves


[1] http://en.wikipedia.org/wiki/Byte_Order_Mark



More information about the opencms-dev mailing list