[ http://jira.magnolia.info/browse/MGNLFORUM-15?page=comments#action_13956 ] Grégory Joseph commented on MGNLFORUM-15: -----------------------------------------
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 ? > Encoding issue when posting messages > ------------------------------------ > > Key: MGNLFORUM-15 > URL: http://jira.magnolia.info/browse/MGNLFORUM-15 > Project: Magnolia Forum Module > Issue Type: Bug > Reporter: Grégory Joseph > Assigned To: Grégory Joseph > Fix For: m2 > > > If i post a message with accents, they're messed up when rendering. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/developer.html ----------------------------------------------------------------
