Hello,
I am working on a product that uses Turbine and Velocity. We are an
ASP with various international customers who require our output be in UTF-8.
This is simple enough, I just set it in my TurbineResources.properties file
with the following line:
locale.default.charset=UTF-8
Displaying all characters works fine. The problem arises, however, when
accepting input from the users. For normal alpha-numeric characters,
everything works fine, but when the user wants to put in a special character
such as a British Pound sign(�) or accented e(�), incorrect data is being
stored. When the string gets to the action class, the characters are
represented as two new characters in the java String, which are then being
stored as such in our database. When looking at the ParameterParser pulled
from the RunData, I can see that the character encoding is set to
"US-ASCII", where as data.getCharacterEncoding() returns "UTF-8" as it
should.
How can I fix this such that the UTF-8 input is properly interpreted?
Thanks,
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]