Reputation:
How can I ensure IIS (and Cassini) send css and js files with the content-type header (ie text/css;charset=UTF-8)?
Upvotes: 5
Views: 5714
Reputation: 109130
Having just come up with the same question I found the answer here (for IIS7/7.5, but expect this should also work for Casini):
Either:
; charset=utf-8
to the mime type in the mine types configuration in IIS manager.<configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".rss" mimeType="text/xml; charset=utf-8"/> </staticContent> [...]
Upvotes: 5