From f11d21d122f0101acd67c541867f3d87496ed04d Mon Sep 17 00:00:00 2001 From: Rolf Timmermans Date: Thu, 14 Jun 2012 13:28:00 +0200 Subject: [PATCH] Change the default character encoding to 'utf-8' instead of 'utf8' to please more browsers. --- middleman-core/lib/middleman-core/core_extensions/request.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/request.rb b/middleman-core/lib/middleman-core/core_extensions/request.rb index 802839b4..27de3c3c 100644 --- a/middleman-core/lib/middleman-core/core_extensions/request.rb +++ b/middleman-core/lib/middleman-core/core_extensions/request.rb @@ -17,8 +17,8 @@ module Middleman ::Rack::Mime::MIME_TYPES['.htc'] = 'text/x-component' # Let's serve all HTML as UTF-8 - ::Rack::Mime::MIME_TYPES['.html'] = 'text/html;charset=utf8' - ::Rack::Mime::MIME_TYPES['.htm'] = 'text/html;charset=utf8' + ::Rack::Mime::MIME_TYPES['.html'] = 'text/html; charset=utf-8' + ::Rack::Mime::MIME_TYPES['.htm'] = 'text/html; charset=utf-8' app.extend ClassMethods app.extend ServerMethods