Frequent bug

TopStyle has been discontinued and support is no longer available. The forum is read-only. NOTE: TopStyle was not developed by the makers of CSS HTML Validator.
mobotech
Rank 0 - Newcomer
Posts: 5
Joined: Sat Jan 02, 2010 11:28 pm

Frequent bug

Post by mobotech »

Once in awhile, I would get this message when validating my html doc:
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.
For some reason, the editor inserts this bit at the top of the page near the doctype: 

I needed to find a text editor that can recognize it, than remove it.

Here another post this the same problem: http://www.ozzu.com/website-design-foru ... 68872.html
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Frequent bug

Post by Albert Wiersch »

It's unlikely to be a "real-world" issue nowadays, so personally I wouldn't worry about it.

But if you want, you can still remove it, but it might come back depending on what editor you use and how it's programmed to deal with UTF-8 and the BOM (byte order mark).

In some editors, you may be able to remove it simply by saving the file as UTF-8 without the BOM. For example, in CSE HTML Validator you can do this with File->Save with Encoding and choose "Unicode (UTF-8)" with the "Use encoding signature" option unchecked.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Re: Frequent bug

Post by MikeGale »

For some time I've used utf-8 competence to eliminate editors from my workflow.

That looks like the best approach to me. I don't want to be held back by old technology.

For a long time this was hard to do. There were not a lot of "utf-8 competent" editors around. (In fact there was one where a company takeover gave incompetent programmers access to the product and they partly broke a working utf-8 system!)

Now I find it easy. There are a lot of editors that just do it.

You might not have control over your editors. If that's so you'll have a different set of problems.
User avatar
TopStyle Support
Rank VI - Professional
Posts: 506
Joined: Sat Jun 13, 2009 12:38 pm

Re: Frequent bug

Post by TopStyle Support »

In TopStyle 4, you have full control over the UTF-8 BOM here: Options (F8) > Editor > Encoding.