<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Wednesday 24 December 2008, Yves Glodt wrote:<br />> On Tuesday 23 December 2008, Philip Kuegler wrote:<br />> > Hi,<br />> > There are several possibilities:<br />> > 1.) Create a new empty file and copy/paste the jsp to there. Then<br />> > remove the old file and rename the new one<br />> > or<br />> > 2.) Edit the file with a text editor (I suggest UltraEdit) and use<br />> > it to remove the BOM<br />> > or<br />> > 3.) Use your preferred IDE, open the file, change the char encoding<br />> > and then save it<br />> > or<br />> > 4.) "vi" the file and remove the BOM manually ;-)<br />> > or<br />> > 5.) copy/paste to notepad and back. So you should get rid of it.<br />><br />> Hi, thanks for the suggestions. I will try and keep you informed.<br /><br>
Ok, late reply... To keep it short: I could not get rid of the BOM. The problem could be that I use kate (http://www.kate-editor.org/) to access the jsp files through webdavs:// which works fine, but it seems that once somehow that BOM appeared, I cannot get rid of it anymore.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Even opening the jsps directly in the workplace-editor, copy/pasting into a blank editor window, saving, reopening the file and re-copy/paste it back to the workplace-editor did not remove the BOM<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Any other ideas... ?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Best regards,<br>
Yves<br>
<br />> > However be aware that the editor you use to open/save the file<br />> > might be the problem. Usually it should provide settings to turn<br />> > the BOM on or off.<br />> ><br />> > br,<br />> > Philip<br />> ><br />> > Yves Glodt wrote:<br />> > > Hello,<br />> > ><br />> > > I have a weird problem, and I noticed about only when I tried to<br />> > > validate my produced html.<br />> > ><br />> > > It seems one of my templates has a BOM [1], and I found no way to<br />> > > remove it. Strangely the BOM seems to create rendering problems<br />> > > for jsp pages which make use of my template. "Normal" xmlpages<br />> > > which use the same template do not suffer from any problems.<br />> > ><br />> > > The errors from the validator are these:<br />> > ><br /><br />> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0<br />> > > Transitional//EN" "http://www.w<br />> > ><br /><br />> > > <body><br />> > ><br /><br />> > > not found. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0<br />> > > Transitional//EN" "http://www.w<br />> > ><br />> > > Note that I have a second template in my project which works fine<br />> > > and does not create rendering errors, and also does not have the<br />> > > BOM<br />> > ><br />> > > How can I remove the BOM from an OpenCms jsp page?<br />> > ><br />> > > Best regards,<br />> > > Yves<br />> > ><br />> > ><br />> > > [1] http://en.wikipedia.org/wiki/Byte_Order_Mark<br /><br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><br /></p></body></html>