Well, if not for anything else then just for future reference, one can show the correct characters by setting the escapeXml="true" at the table level.
Now on to the next tasks: a) how to set it up at the displaytag.properties level b) why did the default change to false? Security reasons? Then how can one use the tag correctly in a language with these characters (which is what, every language except english?)? If someone knows the answer to any of these questions please feel free to help out! Miguel wild_oscar wrote: > > Hi, > > When using the displaytag, I am having a character encoding problem > displaying a property with the value "ááá" (nor any special characters, > for that matter), which you can see here: > > > http://s286.photobucket.com/albums/ll86/wild_oscar/?action=view¤t=Screenshot-1.png > > > This is a Struts 2 application. The relevant jsp code is shown bellow. > You can see in the image that I can display "ááá" correctly with an > s:property tag. The problem is only presen in the displaytag. > > <%@ page language="java" contentType="text/html; charset=UTF-8" > pageEncoding="UTF-8"%> > <%@ taglib uri="http://displaytag.sf.net" prefix="display"%> > <h3>Current Dossiers</h3> > <s:iterator value="dossiers" var="d"> > <s:property value="%{#d.procedureNumber}"/> > </s:iterator> > <div class="conteudo"> > <display:table class="userTable" name="dossiers" pagesize="10" > id="current" requestURI="" sort="list" defaultsort="1"> > > <display:column class="table" headerClass="lista" title="ID" > sortable="true" property="id" href="" paramId="id" /> > <display:column class="table" headerClass="lista" > title="Procedure > Number" sortable="true" >${current.procedureNumber}</display:column> > <display:column class="table" headerClass="lista" > title="Procedure > Number" property="procedureNumber" ></display:column> > </display:table> > > > > I have tried setting the locale.resolver property in the > displaytag.properties file, to a class as described in > http://blog.richeton.com/2009/08/12/displaytag-struts-2-localization/ , > but it didn't help. > > Does anyone know how to display the characters correctly? > > Thank you! > > Miguel > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > -- View this message in context: http://old.nabble.com/Character-encoding-problems-tp28072600p28092863.html Sent from the DisplayTag - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user