[opencms-dev] Problems through Byte-Order Mark
Yves Glodt
yg at mind.lu
Mon Jan 26 22:35:16 CET 2009
On Wednesday 24 December 2008, Yves Glodt wrote:
> On Tuesday 23 December 2008, Philip Kuegler wrote:
> > Hi,
> > There are several possibilities:
> > 1.) Create a new empty file and copy/paste the jsp to there. Then
> > remove the old file and rename the new one
> > or
> > 2.) Edit the file with a text editor (I suggest UltraEdit) and use
> > it to remove the BOM
> > or
> > 3.) Use your preferred IDE, open the file, change the char encoding
> > and then save it
> > or
> > 4.) "vi" the file and remove the BOM manually ;-)
> > or
> > 5.) copy/paste to notepad and back. So you should get rid of it.
>
> Hi, thanks for the suggestions. I will try and keep you informed.
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.
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
Any other ideas... ?
Best regards,
Yves
> > However be aware that the editor you use to open/save the file
> > might be the problem. Usually it should provide settings to turn
> > the BOM on or off.
> >
> > br,
> > Philip
> >
> > Yves Glodt wrote:
> > > 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:
> > >
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> > > Transitional//EN" "http://www.w
> > >
> > > <body>
> > >
> > > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090126/06baa6ed/attachment.htm>
More information about the opencms-dev
mailing list