We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20257
    • 39 Posts
    Why do I always get this:
    The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.
    in my templates ?

    eks. http://www.seowebsite.dk/
      • 7231
      • 4,205 Posts
      I think you need to go into the manager and edit the charset in the site configuration panel to match what you have in the template.

      Also...you should put the <base> before the css and javascript links to avoid issues with IE.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 20257
        • 39 Posts
        thanks .....
        you are the champ grin
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          That’s why I recommend putting [(modx_charset)] to replace the actual character set in your template so that it will always match whatever your configuration is set to.
          http://www.sottwell.com/how-templates-work.html
          One item of especial note in our template is how the site variable tag [(modx_charset)] is used to define the charset in the content-type meta tag. This uses the site configuration setting. When MODx generates the HTTP headers for the page it will use the character set specified in the site configuration. By using this MODx tag in your template you make sure that the HTTP header character set matches the meta tag’s charset. This will, among other things, avoid the character encoding mismatch warning from the W3C validator.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org