Change the default character encoding to 'utf-8' instead of 'utf8' to please more browsers.

This commit is contained in:
Rolf Timmermans 2012-06-14 13:28:00 +02:00
parent ab717af590
commit f11d21d122

View file

@ -17,8 +17,8 @@ module Middleman
::Rack::Mime::MIME_TYPES['.htc'] = 'text/x-component' ::Rack::Mime::MIME_TYPES['.htc'] = 'text/x-component'
# Let's serve all HTML as UTF-8 # Let's serve all HTML as UTF-8
::Rack::Mime::MIME_TYPES['.html'] = 'text/html;charset=utf8' ::Rack::Mime::MIME_TYPES['.html'] = 'text/html; charset=utf-8'
::Rack::Mime::MIME_TYPES['.htm'] = 'text/html;charset=utf8' ::Rack::Mime::MIME_TYPES['.htm'] = 'text/html; charset=utf-8'
app.extend ClassMethods app.extend ClassMethods
app.extend ServerMethods app.extend ServerMethods