Hi there,
So I'm sure there's someone out there who has met this problem and has
found a solution, therefore, let me ask the source. We are dealing with
an international web platform - many many languages. People submit forms
in different languages and it all stored in a mySQL database.
Simple solution: declare the accept-charset value on all your forms to be
UTF-8 (and *only* UTF-8), then put up a simple Filter in front of your chain
which says request.setCharacterEncoding(UTF-8). This should ensure that you
get full unicodes to the ActionBean, and then you only have to deal
Thanks, Janne. I got the Stripe's form to refill with a valid value! But
${actionBean.field} won't work now. I have a filter that sets
request.setCharacterEncoding(UTF-8); as you suggested. Then I print
on my JSP: Last: ${actionBean.test}
The action bean and the form are below. So stripes fills
Daniil --
We're doing all the same stuff and haven't encountered any problems. Here's a
few tidbits from our configuration.
In our mySQL connector we use:
Resource name=jdbc/xxx auth=Container type=javax.sql.DataSource
Janne,
Really??? A filter just to set character encoding??? Although I
imagine it would work isn't that a little sledge hammer-ish ;-)
Why not just put the following at the top of each of your JSPs (or tweak
as necessary):
%@ page language=java pageEncoding=UTF-8