_____  

From: Joe Adams [mailto:[email protected]]
To: [email protected] 
[mailto:[email protected]]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to