Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-16 09:05:30

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

[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

#2 2009-09-16 09:30:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,197
Website GitHub Mastodon Twitter

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

#3 2009-09-16 10:07:09

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

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

#4 2009-09-16 10:19:47

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#6 2009-09-16 21:23:10

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

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

Board footer

Powered by FluxBB