Re: [FreeMarker-user] URL-encoding strings
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: Per C. <pe...@pe...> - 2004-01-06 21:01:05
|
On Tue, 2004-01-06 at 20:46, Daniel Dekany wrote: > But which Servlet container does that (use UTF-8 for the encoding)? You mean for decoding URL:s? I actually had a similar problem with POST:s in Tomcat. By default I think it did ISO-8859-1, but it does respect the standard way of setting the char encoding: request.setCharacterEncoding("UTF-8"); Then, of course, one has to hope that the browsers do send stuff on the wire in UTF-8. It helps to set the page encoding in the HTTP headers (or in META-tags) but it provides no guarantee. Or did I get sidetracked now? Cheers, /Per |