struts-user mailing list archives

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

meeboo,

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!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFGOjVa9CaO5/Lv0PARAqQeAJjR3Q4cAAOViTNxlRbVB9jH+/COAJ9bRghJ
Gf3FpAnWCwY9yquHPPsKLw==
=S2nd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message