开发者

Grails 1.3.7 clean project cannot serve utf8 files

开发者 https://www.devze.com 2023-04-06 22:59 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号