These characters are not static they are being created dynamically. I can not put them in a property file. I am getting the hex unicode for the characters from the database as 00fc and then I am trying to set them to a variable in my action eg
setTest("\u00fc") but when I view the output from <s:property value="test"/> I see ü instead of actual character. If you put \u00fc in a property file it works correctly why is it not working from an action? ----- Original Message ---- From: Leonidas Papadakis <[EMAIL PROTECTED]> To: Struts Users Mailing List <user@struts.apache.org> Sent: Sunday, September 23, 2007 9:09:30 AM Subject: Re: [s2] How do I output unicode characters please help Just put the umlaut character u" directly to your property file and make sure that you save it as utf-8 not ansi e.t.c. Regards, Leon David Harland wrote: > Hi, > > Thanks I have added those properties but it is still outputting ü. > > Can someone please tell me what I might be doing wrong. > > Dave. > > ----- Original Message ---- > From: Leonidas Papadakis <[EMAIL PROTECTED]> > To: Struts Users Mailing List <user@struts.apache.org> > Sent: Saturday, September 22, 2007 4:22:04 PM > Subject: Re: [s2] How do I output unicode characters please help > > Hi there, > > in my Greek scenario i have set the below in struts.properties file : > struts.i18n.encoding=UTF-8 > struts.locale = el_GR > > in my freemarker.properties : > default_encoding=UTF-8 > locale=el_GR > > in my jsp file : > <%@ page contentType="text/html; charset=utf-8" %> > > Also check the doctype of your resulting html. > > I hope this will help .... > > Regards > > Leon > > David Harland wrote: > >> Hi, >> >> If I put the following \u00fc in a properties file and use it in a jsp i get >> the german character u" output. If I have an action with the variable test >> and I set it with \u00fc and I output it in a jsp I get the encoding ü. >> >> How do I get the character instead of this encoding please? >> >> Thanks >> >> Dave. >> >> >> >> >> >> ____________________________________________________________________________________ >> Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. >> http://autos.yahoo.com/index.html >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > ____________________________________________________________________________________ > Pinpoint customers who are looking for what you sell. > http://searchmarketing.yahoo.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]