瀏覽代碼

Merge pull request #873 from Alkarex/Charset

Force HTML content-type with charset
Alexandre Alapetite 10 年之前
父節點
當前提交
ca59b2be23
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/Minz/View.php

+ 1 - 0
lib/Minz/View.php

@@ -91,6 +91,7 @@ class Minz_View {
 	 * Construit le layout
 	 * Construit le layout
 	 */
 	 */
 	public function buildLayout () {
 	public function buildLayout () {
+		header('Content-Type: text/html; charset=UTF-8');
 		$this->includeFile(self::LAYOUT_PATH_NAME . self::LAYOUT_FILENAME);
 		$this->includeFile(self::LAYOUT_PATH_NAME . self::LAYOUT_FILENAME);
 	}
 	}