Hi Josh,

I did try just the ®initially, however it doesn't seem to work. The unicode-escape sequence does however, so that is what I will go ahead with.

key=® \u00AE ®

<t:outputraw value="message:key" />
® ® �

${message:key}
&reg; ® �

Thanks, Paul.

On 20/01/2012 3:35 PM, Josh Canfield wrote:
Oh, and Tapestry will read your properties file in UTF8, so you could
just store the ® directly in the file.

http://tapestry.apache.org/localization.html

On Thu, Jan 19, 2012 at 8:34 PM, Josh Canfield<joshcanfi...@gmail.com>  wrote:
Use unicode escapes?

http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html#load(java.io.InputStream)
http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.3

\u00AE

http://www.fileformat.info/info/unicode/char/ae/index.htm

Josh

On Thu, Jan 19, 2012 at 7:21 PM, Paul Stanton<p...@mapshed.com.au>  wrote:
Hi all,

I'm looking for the best way to store special characters such as ® (&#174; /
&reg;) in the messages properties bundle (i.e. app.properties).

I'm aware that I can store the entity name within the bundle and then use
the 'outputraw' component to render the appropriate symbol in the browser,
however the messages bundle is sometimes used for non-browser functionality
and I would prefer to have a more transferable approach.

Is there any alternative?

Thanks, Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to