Thank you, Matthijs! While it is not really a Stripes problem, I was hoping
there was a Stripes solution. Setting my character encoding on the page
doesn't help. However, I can solve the issue by just eliminating the one bad
character I always get.
Thanks,
Joe
________________________________
From: Matthijs Laan [matthijsl...@b3partners.nl]
Sent: Saturday, December 22, 2012 3:56 AM
To: Stripes Users List
Subject: Re: [Stripes-users] Input with non-standard character input
________________________________
From: Joe Adams [mailto:joe.ad...@vividseats.com]
To: stripes-users@lists.sourceforge.net
[mailto:stripes-users@lists.sourceforge.net]
Sent: Fri, 21 Dec 2012 21:15:41 +0100
Subject: [Stripes-users] Input with non-standard character input
I have an input in which symbols like © can be entered. Inside my action, the
input variable has the text © where ever the the © was inputted. How can I
fix this?
I don't think your problem is stripes-specific, but it is a very common problem
in web applications. See this page (also relevant if you don't use Tomcat):
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding
The problem you most likely have is
"Most web browsers today do not specify the character set of a request, even
when it is something other than ISO-8859-1. This seems to be in violation of
the HTTP specification. Most web browsers appear to send a request body using
the encoding of the page used to generate the POST (for instance, the <form>
element came from a page with a specific encoding... it is that encoding which
is used to submit the POST data for that form)."
If you only need special characters in POST requests I would recommend setting
all HTML pages you with your forms to UTF-8 and using the
org.apache.catalina.filters.SetCharacterEncodingFilter (you can copy this
filters' code to your application code if you don't use Tomcat).
Matthijs
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users