1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP and character encoding

Discussion in 'PHP' started by mxlabs, Jun 29, 2004.

  1. #1
    I recently converted a html page to php, this page worked before the conversion but now does not validate using the w3c validator:

    how do I set php character encoding?
     
    mxlabs, Jun 29, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Same as with HTML... just output something like:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    Code (markup):
     
    digitalpoint, Jun 29, 2004 IP
  3. mxlabs

    mxlabs Peon

    Messages:
    327
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I did have that line in my php file...
    it was an issue with an included script, turned out that it had to be included after the html character encoding. thanks anyway :)
     
    mxlabs, Jun 29, 2004 IP