forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: hell on January 18, 2008, 06:35:54 pm

Title: XHTML validation problem
Post by: hell on January 18, 2008, 06:35:54 pm
I don't know what is the problem

http://validator.w3.org/check?uri=http%3A%2F%2Fpicturehost.no-ip.org%2Findex.php (http://validator.w3.org/check?uri=http%3A%2F%2Fpicturehost.no-ip.org%2Findex.php)

Thanks
Title: Re: XHTML validation problem
Post by: Matt Carlson on January 18, 2008, 09:38:06 pm
Click on the option for "Verbose Output" then validate. It lists out the items it takes issue with for you to correct (Google / search engine of choice is your friend for that.)
Title: Re: XHTML validation problem
Post by: Nibbler on January 18, 2008, 09:53:41 pm
Most of that is caused by the image scroller mod and you can search the board for BOM for the warning message.
Title: Re: XHTML validation problem
Post by: hell on January 18, 2008, 10:28:30 pm
i referring to:

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.

Thank you for replay
Title: Re: XHTML validation problem
Post by: Joachim Müller on January 19, 2008, 01:32:02 pm
Re "BOM":
The weird symbols you encountered are byte order marks (http://en.wikipedia.org/wiki/Byte_Order_Mark) from utf-8. They usually come when using an editor like Notepad to edit utf-8 encoded file. Although WIndows doesn't display the BOM, it deliberately adds it to any UTF-8 encoded file. When uploading this file, your webserver/browser display what actually is there.
Recommendation: get the most recent language file from the stable branch and upload it to your server, replacing the one that exists there already. If you need to edit the file before uploading, use an editor that is capable to edit utf-8 files properly without adding the BOM, or remove the BOm manually after editing (but before downloading). This can be done with a tool like "Replace in Files (http://www.emurasoft.com/replall/)", which is really a very handy tool not only for removing the BOM.
Title: Re: XHTML validation problem
Post by: hell on January 19, 2008, 04:56:34 pm
Solved


the problem was Microsoft Expression Web when copy/paste color code
Title: Re: XHTML validation problem
Post by: Joachim Müller on January 20, 2008, 10:18:29 am
Thanks for resolving. However, "MS Expression Web" aka "MS Frontpage" is in no way an application fit to be used to handle Coppermine code, as it tends to "beautify" coded that it should not touch. Don't use a crappy WYSIWYG editor to edit coppermine files.