Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Meta charset declaration in the <head> of the page?

edited June 2009 in Vanilla 1.0 Help
I'm currently evaluating Vanilla for building a discussion board in a foreign language. I noticed there is no meta charset declaration in the <head> of Vanilla generated pages. I know I could probably add it by editing some PHP file, but I'm wondering why is it not there by default.


  • Options
    The meta charset declarations in the HTML head are not required as long as the server sends the proper response in the HTTP headers.

    If you want to add other strings to the <head> section of your Vanilla pages, it's very simple.

    Create an extension with the following content:<?php /* Extension Name: HTML Header Injector Extension Url: Description: Add strings the the HTML header of every page Version: 1 Author: Matthew Pietz Author Url: */ $Head->AddString('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />');
  • Options
    Thank you, this is perfect. :)
Sign In or Register to comment.