I create a clean grails application and run grails dev war
and deploy under Tomcat 6.0.32. When I attempt to download this file via localhost:8080/utf8.html
, I get a response with busted encoding and characters.
When I create a ROOT/
directory in web-app/
and serve th开发者_开发百科e same file, the response is fine.
What's going on here?
Write a controller to serve files properly. With no other solutions, this is all you have.
精彩评论