Forums / Bug Reports / unable to validate document because demo define_main_page contain non-UTF8 characters

unable to validate document because demo define_main_page contain non-UTF8 characters

Locked

Views: 1,497

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Jan 2015, 6:40 PM
#1
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

unable to validate document because demo define_main_page contain non-UTF8 characters

Huh. I've never had a stock Zencart installation fail validation, but my 1.5.4 test site (stevesh.com/demo) (custom template using Classic elements, but no other mods) gives me a "Sorry! This document cannot be checked." error message and this explanation:

Sorry, I am unable to validate this document because on line 354 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The error was: utf8 "\x92" does not map to Unicode

5 Jan 2015, 7:07 PM
#2
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: unable to validate document because demo define_main_page contain non-UTF8 characters

stevesh:

Huh. I've never had a stock Zencart installation fail validation, but my 1.5.4 test site (stevesh.com/demo) (custom template using Classic elements, but no other mods) gives me a "Sorry! This document cannot be checked." error message and this explanation:

Sorry, I am unable to validate this document because on line 354 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The error was: utf8 "\x92" does not map to Unicode

Try removing all of the text from define_main_page under the define pages editor and trying to run the validator again

5 Jan 2015, 7:09 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: unable to validate document because demo define_main_page contain non-UTF8 characters

Ya, there appears to be a non-UTF8 character on the first line of the define_main_page.php file that ships with ZC, in the "book" ad.

But, since every live shop will change that out with their own content, it's a minor issue which will be left for the next version.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.