Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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
    Last edited by stevesh; 5 Jan 2015 at 07:47 PM.

  2. #2
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: Does not validate at http://validator.w3.org

    Quote Originally Posted by stevesh View Post
    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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Does not validate at http://validator.w3.org

    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.

 

 

Similar Threads

  1. UTF8 and special characters after upgrade
    By aeolidia in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 10 Apr 2011, 09:29 PM
  2. Replies: 3
    Last Post: 24 Oct 2010, 05:43 AM
  3. Error : XML document must contain a root level element in paypay_functions.php
    By stapes in forum Installing on a Windows Server
    Replies: 6
    Last Post: 11 Sep 2009, 07:08 PM
  4. Replies: 1
    Last Post: 8 Jul 2009, 03:44 PM
  5. mysql utf8 re-import shows meaningless characters
    By reza in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 31 May 2007, 01:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg