Encoding problem in handlebars-proto
On handlebars-proto/src/main/java/com/github/jknack/handlebars/server/HbsServlet.java#L121:
Is it better call .setContentType() before .getWriter()?
thanks
Can you provide an example?
yes, when rendering the template with chinese characters, I expect the charset of response to be 'UTF-8', but it always return the 'ISO8859-1', that lead to the unreadable codes in html.
BTW, after looking at the source code, I think it may be better to give another option to let user set the characterEncoding?
fixed in 1.1.3-SNAPSHOT, default encoding is UTF-8 and you can change it from command line with the -e option
Cool! thanks!