Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[Solved] Textpattern (Byte-Order Mark ) issue
Hi
I was experiencing problems getting CSS to work in Internet Explorer 8 on a TXP site am developing.
Much head scratching ensued and I decided to validate the HTML to see if anything glaring I might have missed came up.
I got the following from W3C which is something I’ve never encountered before:
Byte-Order Mark found in UTF-8 File.
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.
The question I have is what is the likely origin of this issue? It is seemingly an encoding issue but is this likely to be the encoding of the php file that Textpattern is using (v4.0.8), or perhaps an issue with the page that is being used for the site, or indeed the form that is being used in that page to display the page <head> gubbins.
The relevant validation page is at http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.ahss.org.uk%2FAHSS_2008%2Ftxp%2F (from which you will be able to garner the offending URL)
Has anyone encountered this problem before?
If so, can anyone advise of a possible solution?
Regards,
Cole
Last edited by coleh (2009-09-16 21:28:31)
Jack of all trades, Doctor of one
Offline
Re: [Solved] Textpattern (Byte-Order Mark ) issue
Byte-Order Marks are normally inserted from copy/paste texts. If a text has been copied from word for example.
The strange thing is that if I copy/paste the actual source of the address to the validation service no errors are returned.
My suspicion is that there is a space somewhere in there which although invisible, causes the validation to fail.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [Solved] Textpattern (Byte-Order Mark ) issue
Hi Yiannis
I noticed that although if I copy the HTML source into Notepad++ the extra character is carried through.
I can’t for the life of me see where this is coming from. I have gone through all the relevant database entries (forms and pages) as well as the source PHP files and cannot see anything for concern.
Harrumph – what a mystery.
Thanks for looking,
Cole
Jack of all trades, Doctor of one
Offline
Re: [Solved] Textpattern (Byte-Order Mark ) issue
We’ve had this problem before. At the time, one of the TXP files had a byte order mark (BOM). This was removed a long time ago… but perhaps it was reintroduced again?
Offline
#5 2009-09-16 16:33:36
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [Solved] Textpattern (Byte-Order Mark ) issue
ruud wrote:
At the time, one of the TXP files had a byte order mark (BOM).
It was MLP’s l10n_base.php
file, the thread is here. But that was fixed too.
Offline
Re: [Solved] Textpattern (Byte-Order Mark ) issue
Sorted.
I had a couple of plugins on the site referenced as files within the plugins folder rather than within the database. One of these was formatted as UTF-8 rather than as UTF-8 without BOM.
Thanks everyone for your help.
Cole
Jack of all trades, Doctor of one
Offline