I have the same problem with polish characters (????ó???) when I am using them in messages_pl.properties.
My .xhtml files are set to UTF-8 encoding, and polish characters are displayed well.
Only text from messages in some place is converted to: Ä sequence of chars (looks like: Ä :) )
I don't think that you should have foreign characters in the xhtml.
As of the properties files... they should be in ISO-8859-1 that's the standard. Any characters >128 (I think) should be encoded like this \uXXXX (I think). All java IDE's contain a plugin that helps you write your properties file in the language you want and have it converted when you deploy.
Thanks for quick answer.
Do you know how to make such a mapping from non-english characters to \uXXXX in painless way in eclipse?
It's not so obvious that standard for .properties is ISO-8859-1, when everywhere in java world UTF-8 is a standard.
Especially using ISO-8859-1 in files that are used for internationalization is a little bit strange.
I think that this should be explained in reference documentation Chapter 14. Internationalization and themes.
You're right that it's not obvious. And given the fact that every IDE needs a plugin for properties files, I think that this is a strange standard. This comes from Java, not Seam.
From another forum:
You can't. Java property files are always encoded in ISO-8859-1. In
order to use other characters you need to escape them properly. There
is an encoder/decoder for it and/or eclipse plugin.
Sorry but I don't use Eclipse and I have not found a good way to handle properties files when I was using it.
You can use ant build with this:
Like all java properties files, the file is encoded in ISO-8859-1; if you need to represent other characters, you will need to use escape sequences. The standard Java programs "native2ascii" or "ascii2native" is the best way to write these secape sequences. Search http://java.sun.com for more information on using these tools.