sn3d / lime-mvc

A lightweight MVC for Google Guice
http://code.google.com/p/lime-mvc/
26 stars 9 forks source link

Encoding is handled incorrectly in lime-freemarker in gae envirnoment. #5

Open ivanfrolovmd opened 11 years ago

ivanfrolovmd commented 11 years ago

The reason for incorrect encoding (UTF characters are substituted to question marks in gae) is that intermediary ByteOutputStream is used without charset handling.

Possible solution is to remove ByteOutputStream in

org.zdevra.guice.mvc.freemarker.FreemarkerViewPoint.render()

and use response's writer right away:

template.process(data, response.getWriter());
sn3d commented 11 years ago

Thank you for you report. Sorry for delaying but github notification mails doesn't work for me. I'll fix it.