struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: [S2] UTF-8 woes
Date Thu, 03 May 2007 19:17:46 GMT
Hash: SHA1


It's amazing to me that people not only don't read the archives, but
they also don't read the messages posted on the same day or even in the
/same hour/. :(

- -chris

meeboo wrote:
> Hey all
> I am trying to submit form data with UTF-8 characters but am having no luck.
> The special characters are garbled when inserted in the database from a
> <s:form> for example - this is regardless of what browser I am using. I am
> using a page content type declaration for each page, but that doesn't help
> at all. Do I need to declare it somewhere else in my Struts 2 application? I
> remember that I in my old JSP/Servlet app had to convert certain characters
> to special UTF-8 characters before saving Strings etc... but in S2 all I get
> is question marks for special characters when I inspect incoming UTF-8
> strings.
> I am using this content type declaration. 
> <%@ page contentType="text/html; charset=ISO-8859-15" %> 
> I also used <%@ page pageEncoding="UTF-8" %> but to no avail.
> Help!
> Thanks!
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message