SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Temecula, CA
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inverted Exclamation Point

    I can't get the inverted exclamation point. I've tried "¡" and I've tried lang="es" in the html tag. This should be a piece of cake, or flan or whatever. Can someone shine some light on this one for me?

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ¡ is what you're after.

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or ¡ or ¡. You can even insert a literal '' character, but make sure that your character encoding is declared correctly (pay special attention to the HTTP Content-Type header sent by your web server).

    The lang attribute has no relevance whatsoever in this case.
    Birnam wood is come to Dunsinane

  4. #4
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Temecula, CA
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AutisticCuckoo
    Or or . You can even insert a literal '' character, but make sure that your character encoding is declared correctly (pay special attention to the HTTP Content-Type header sent by your web server).

    The lang attribute has no relevance whatsoever in this case.
    So what should the Content-Type header include? My PHP is sending:
    PHP Code:
    header("Content-type: text/html; charset=utf-8"); 

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That depends which encoding you use when saving your .php file. If you save as UTF-8, then the Content-Type header should specify UTF-8. If you save as ISO-8859-1 or Windows-1252, then your header should specify ISO-8859-1 or Windows-1252, respectively.

    If you save as ISO-8859-1 and serve as UTF-8 (or vice versa) it won't work.
    Birnam wood is come to Dunsinane

  6. #6
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Temecula, CA
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found my mistake -- I was looking in the wrong place. The string that required the inverted exclamation point appears in two places within the page; one is hidden initialy while the other is not. And surely the rest of the story is obvious.

    Another reason to store repeated strings in vars!


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
  •