I knew somebody would say that. I was too lazy to subscribe and I half expected them to ask on the struts list.
Thanks Musachy, I’ll subscribe and post now. I guess I was hoping others might have experienced a similar problem. Z. > > did you try asking the FreeMarker guys? > > On Tue, Aug 25, 2009 at 7:26 PM, Zoran > Avtarovski<zo...@sparecreative.com> wrote: >> > I¹m having trouble displaying Danish text in my forms using the struts tags >> > and I think it related to an error with how freemarker gets the locale. I¹m >> > getting a lot of question marks in the text, but if I set the server local >> > to Danish, all works as expected. Obviously that¹s not a solution as the >> > other languages also have problems. >> > >> > For example the s:select tag is incorrectly displaying some Danish text. >> But >> > if I go in and edit the freemarker template file and change the label >> > display from ${} notation to one using <@s.property /> tag it works as >> > expected. >> > >> > Here¹s the details >> > >> > <@s.property value="%{parameters.label}"/> prints the correct text: >> > >> > Hvornår (ca.) begyndte de nuværende rygsmerter eller bensmerter (iskias)? >> > >> > But ${parameters.label?html} prints texts with Œ?¹ substituted for >> > unsupported characters : >> > >> > Hvorn?r (ca.) begyndte de nuv?rende rygsmerter eller bensmerter (iskias)? >> > >> > >> > I can see one solution is to change all the freemarker template files and >> > replace ${} with <@s.property/>. >> > >> > But I¹m sure there has to be a simpler solution. >> > >> > Please, please help. As at the rate I¹m going I won¹t be needing a haircut >> > for a while. >> > >> > Z. >> > > >