Nestor: first of all, verify that your database has the correct encoding, it should be ISO-8859-1, then what I can tell you is that is better that data travels in UTF-8 format, because that's the way it was meant to be... So what's next? If you're working with JSP add this to the beginning of each .jsp: <%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" %>
As you can see, you have now your database and JSP in ISO-8859-1, whilst the data is traveling in the format it should travel, that is to say: UTF-8... When using a form with file upload capabilities, just use this attribute in it: enctype="multipart/form-data; charset=UTF-8" This way you are ensuring data is traveling in UTF-8. If you're using a different view technology as freemarker or velocity, you should look for the analog <%@ page ... of it... I hope this helps you! 2012/1/6 Néstor Boscán <nesto...@gmail.com> > Hi > > I'm using Struts 2 2.1.8.1 with the Struts 2 JSON plugin. I'm using > accented characters and event if I configure the defaultEncoding to > ISO-8859-1 the resulting JSON document is sent using UTF-8. In IE it > gives a data error because the page encoding ISO-8859-1 is not the > same as the JSON document. Has this been corrected in newer versions?. > Any ideas? > > Regards, > > Néstor Boscán > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Hernán