SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with special char

    W3C code validator
    http://validator.w3.org/

    chokes on ’ on one page:
    http://kripalu.sitepoint.com.au/about/9/
    but not on another:
    http://kripalu.sitepoint.com.au/about/4/

    On the first page listed above I get the error message:
    Line 193, column 50: reference to non-SGML character (explain...). <p>When you come to Kripalu for a program you’ll have more than anIf ’ is non-SGML, why does it work on one page, but not on another?What is the alternative, if it is non-SGML?I am using:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    Paul C.
    ClickBasics
    http://www.clickbasics.com

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not use the Decimal code
    & # 3 9 ;

    No spaces...
    Aaron Brazell
    Technosailor



  3. #3
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    That hexadecimal value that may have been illegal because it is seen as a "control character" http://www.unicode.org/charts/PDF/U0080.pdf, thus the validator complains and it's basically down to byte value conversion remember SGML is supposed to be platform independent.

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Sketch
    Why not use the Decimal code
    & # 3 9 ;

    No spaces...
    (& #8217; in your HTML, no space between the ampersand and hash sign) works better (curly apostrophe, it's more "typographically correct" ).


Bookmarks

Posting Permissions

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