Specify struts.i18n.encoding in the strus.xml doesn't solve the problem.
But I've tried a lot of thing, and I have finally solved the problem.: If I use a result standart, which forward on a JSP, it doesn't work. But if I use a tiles result with an empty template, it works. So, if I want UTF8 specials characters, I must to also use tile for ajax results. Thanks for your reactivity Musachy. Julien 2007/5/14, Musachy Barroso < [EMAIL PROTECTED]>:
Try setting struts.i18n.encoding in struts.properties or struts.xml musachy On 5/14/07, Julien Leonard <[EMAIL PROTECTED]> wrote: > > I've just tried it. And there is the same encoding problem. > So you're write, it doesn't come from ajax. > > I can't put > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > because there is no header. > > Where can be the problem? > > Julien > > 2007/5/14, Musachy Barroso <[EMAIL PROTECTED]>: > > > > Did you try hitting the action with a regular request, what is the > > encoding? > > For struts, an ajax request is not different from a regular request. > > > > musachy > > > > On 5/14/07, Julien Leonard < [EMAIL PROTECTED]> wrote: > > > > > > Hello all, > > > > > > I have a problem with characters encoding in ajax results. > > > In fact I have a jsp wich displays a Search UI with well encoding > > labels. > > > > > > When the search is submited a div is updated thank to the targets > > > attribute > > > of the submit tag. > > > The result displayed isn't in UTF-8 ! > > > > > > All my .properties (for label) are encoded in UTF-8, my JSPs too. Adn > I > > > put > > > <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" > %> > > in > > > each JSPs. > > > > > > Is anyone had this problem? > > > > > > > > > Julien Leonard > > > > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd