SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: HTML5 charset...

  1. #1
    SitePoint Zealot Bootfit's Avatar
    Join Date
    Jun 2005
    Location
    Liverpool, UK
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML5 charset...

    Apologies if this is in the wrong thread...

    I'm running Google site speed checker on my site and the following issue is flagged:

    ---------
    Specify a character set
    Specifying a character set early for your HTML documents allows the browser to begin executing scripts immediately.

    Suggestions for this page
    The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP headers can speed up browser rendering.
    ---------

    I have the follwoing in my page head:

    HTML Code:
    <!doctype html>  
    <html lang="en">  
    <head>  
    <meta charset="utf-8">
    ...so what am I missing?

  2. #2
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,936
    Mentioned
    216 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Bootfit View Post
    no character set specified in their HTTP headers
    That is more flagging what's sent by the server, I believe.

  3. #3
    SitePoint Zealot Bootfit's Avatar
    Join Date
    Jun 2005
    Location
    Liverpool, UK
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    That is more flagging what's sent by the server, I believe.
    Ah right-O. Are you able expand on what I have to do to resolve this?

    Cheers.

  4. #4
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,936
    Mentioned
    216 Post(s)
    Tagged
    2 Thread(s)
    It's not really something I understand very well. This tries to explain what headers are:

    http://net.tutsplus.com/tutorials/ot...s-for-dummies/

    and this might help a bit, too:

    http://www.w3.org/International/ques...eaders-charset

    It may depend on the type f server you have and your access privileges how much you can do about this ... assuming it's even the issue. Can you post a link to the site?

  5. #5
    Dumitru "Mitică" UNGUREANU itmitică's Avatar
    Join Date
    Feb 2012
    Location
    Fălticeni
    Posts
    656
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.w3.org/International/ques...access-charset

    It boils down to creating a .htaccess file with the following line in it:
    Code:
    AddCharset UTF-8 .html
    As they say, this "will cause all files with the extension .html to be served as UTF-8", directly or in the subdirectory tree where the .htaccess file resides.


    Also, a HTML5 charset doesn't exist. And the whole stuff here is web server related, it's not HTML related.
    "I am the wisest man alive, for I know one thing, and that is that I know nothing."

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
  •