Can't figure this out... really strange

Discussion in 'PHP' started by oo7ml, Apr 27, 2009.

  1. #1
    I have just finished coding my design from PSD to CSS / XHTML - and as usual i have now started to break my site up into various includes (header.php menu.php, footer.php etc)

    However, for some strange reason, my € signs and copyright symbol (in the footer) do not show correctly since i have converted my site from html to php.

    I have set up two versions so that you can compare both of them:

    html version: http://ncane.com/evf

    php version (with several includes): http://ncane.com/ysk

    I have spent nearly two hours trying various different things and i can't see why this is happening,

    thanks in advance to anyone who can help me here...
     
    oo7ml, Apr 27, 2009 IP
  2. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #2
    solved... should have been using €
     
    oo7ml, Apr 27, 2009 IP
  3. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Or save your documents as UTF8 with no BOM and make sure to send the appropriate header:

    Content-Type: text/html; charset=utf-8
    Code (markup):
    That way you can just type the euro symbol and all other symbols straight into your PHP code without having to worry about entities like €.
     
    SmallPotatoes, Apr 28, 2009 IP