1
lmzan
UTF-8 signature adds unwanted characters in the beginning of the page
  • 2011/2/4 13:54

  • lmzan

  • Not too shy to talk

  • Posts: 104

  • Since: 2005/6/21


I'm having some layout problems since I started using UTF-8 coding in my Xoops sites.

With some modules, Publisher for example, there are unwanted characters on the top of the page. When I try to validate the page I get this warning:

Quote:
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.


There is this W3C page on the subject (http://www.w3.org/International/questions/qa-utf8-bom.en.php) but I've checked my file's encoding in Dreamweaver and Notepad++, using UTF-8 without BOM and I still get the problem.

In Publisher I checked the coding in /publisher/index.html file and the /language files.

Any idea on which file should I check to solve this? Or a different program to use in order to clean the UTF-8 signature in the beginning of files?

Check this URL to see it happening: http://unes.br/site/modules/publisher/

2
jagibu
Re: UTF-8 signature adds unwanted characters in the beginning of the page
  • 2011/2/4 22:52

  • jagibu

  • Just popping in

  • Posts: 68

  • Since: 2005/6/17


Search in publisher templates/ files for UTF with BOM or any sign on top, over header ( "white" too ).
You have :
DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">

In html source I see on top sign like "-" and white line. ( for me BOM prints other sign ...)

Other modules source html look fine.




Login

Who's Online

235 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits