Permalink
Browse files

Fixes problems loading scripts from preview on non-UTF8 pages.

  • Loading branch information...
1 parent a431794 commit ab8c3f9cd17fed3d3a2806399be7f5f96b8f5601 Ryan J Daw committed Sep 17, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/preview.coffee
View
@@ -15,9 +15,12 @@ errorTemplate = require '../lib/errorTemplate.js'
MimeTypes =
- 'css': 'text/css'
- 'html': 'text/html'
- 'js': 'application/javascript'
+ 'css': 'text/css; charset=utf8'
+ 'html': 'text/html; charset=utf8'
+ 'xml': 'application/xml; charset=utf8'
+ 'xhtml': 'application/xhtml+xml; charset=utf8'
+ 'js': 'application/javascript; charset=utf8'
+ 'json': 'application/json; charset=utf8'
'jpeg': 'image/jpeg'
'jpg': 'image/jpeg'
'png': 'image/png'

0 comments on commit ab8c3f9

Please sign in to comment.