Er, no; property files are required to be in ASCII format. Using a UTF-8
character encoding in a properties file will not work.
@Dave: ü is a valid encoding of the character \u00fc, it's
equivalent; in fact, I think it's equivalent regardless of character
encoding for the served HTML, which would make it the most portable
representation. Why do you want something else?
If you really can't work with the encoded output, you may be able to get
the raw character, for example with <s:property value="test"
escape="false"/>.
L.
Leonidas Papadakis wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]