Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Displaying weird characters in html

    Can someone tell me how to display a ' in html code? I know for instance that & is & and have found a lot of ways to display a lot of other weird characters but not the '

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,724
    Thanks
    41
    Thanked 191 Times in 190 Posts

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #3
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts
    thanks but now I am confused as I thought and have always used for & - its & - this table is sorta telling me that is not true?

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    There's more than one way to encode special characters. Hex, Dec, ASCII and so on.

    Here's a pretty good chart that shows each type and their counterparts.
    Teed

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by CoolKay View Post
    Can someone tell me how to display a ' in html code? I know for instance that & is & and have found a lot of ways to display a lot of other weird characters but not the '
    '

    But you shouldn't need to encode this character.

  • #6
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    haha ok I misread the question. OP wanted to know the encoding for an apostrophe....lol

    No as Apostro-phartheid said, you shouldnt need to endode this at all.
    Teed

  • #7
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,637
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    Quote Originally Posted by teedoff View Post
    No as Apostro-phartheid said, you shouldnt need to endode this at all.
    Unless you care to write typographically correct apostrophes in unsupporting character encondings.

  • #8
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts
    okay, gys, I know this seems a tad bit picky HOWEVER, I have a php database validation problem with my entertainers database at http://www.countyfairgrounds.net/ent...ersforhire.php - MY PHP guy is trying to figure out if he can put the coes for html translation into the php so it will display properly and not be kicked out by the feed validator. That is our problem now. That beings aid - I am presuming we can just use the html coes for special display characters? s

  • #9
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,637
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    The problem of your site is that somewhere the character encoding is screwed up. I suppose it has something to do with the database, in which encoding is this set up? The HTML validator says it can’t validate the document because some characters aren’t UTF-8.

  • #10
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts
    hi, my php guy is self taught and cannot figure out how to solve the character coding problem in the MySQL - so that is what I am really asking for help with, and if you can help that would be great


  •  

    Tags for this Thread

    Posting Permissions

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