www.webdeveloper.com
Results 1 to 5 of 5

Thread: Encoding mismatch between HTTP header and <meta> tag

  1. #1
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745

    Encoding mismatch between HTTP header and <meta> tag

    I validated my pages, and I ran into a major glitch.

    The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8).
    Can I change the HTTP header somehow, or must I adjust the <meta> tag?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    First line of the document:
    Code:
    <?php
    header("content-type: text/html;charset=utf-8");
    ?>
    or in .htaccess

  3. #3
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745
    What if I have access to neither?

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Ask (beg) the provider to do it.

  5. #5
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745
    I've got a site posted in two places (one is Furtopia, the other is Furnation), and Furnation's got SQUAT for server-side support. That's why I asked.

    I just switched over the encoding to iso-8859-1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles