|
This is due to
- the fact that tomcat will encode/decode everything in iso-8859-1 by default
- our page is in utf-8
- one can override the encoding, as our ContentTypeFilter does
- any encoding overriding is only effective if done BEFORE any parameter is requested from the request (i.e the container parses the parameters lazily)
- we do request.getParameter too early for the above to work, because of the way the WebContextImpl.getAttribute is implemented: if an attribute isn't found, we try to get it as a parameter request.
I'm not sure why we do the latter, because imho request attributes and parameters should be merged transparently. There are certainly cases where this is desirable, but that should be marginal and should not be transparent (i.e not handled by the Context class). As a side note, Im not sure I get the idea behind MAGNOLIA-1487, not sure how the implemention does anything useful ?
|