You can't do that if you want localization, though. Really, the best way to solve this is to just use a multi-byte character encoding to put messages in the .properties file. That means writing them so that they look correct when viewed with a multi-byte capable text editor. Assuming that Java's default charset matches the charset used to encode your properties file, then they characters will be correctly included in the html document and escaped as necessary. Be careful, because the default charset in windows and mac is not UTF-8 and is unique to the platform in question. This means that if you don't use UTF-8, you are likely to wind up with pages that look correct in your OS, but have question marks and other extraneous characters in any other system. Better to force java to use UTF-8 and then encode everything in UTF-8. Starting tomcat with -Dfile.encoding=UTF-8 in your environment does the trick.
--sam On 11/29/06, Holger Stolzenberg <[EMAIL PROTECTED]> wrote:
I had a similar problem. I am using tap4.0.2 but maybe this helps. I think you should try to specify the submit as an explicit component in the .page with the value as a component binding, like the following example: <component id="MySubmit" type="Submit"> <binding name="value" value="literal:Ändern" /> <binding .... /> </component> -----Ursprüngliche Nachricht----- Von: Michael Siebert [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 29. November 2006 10:57 An: users@tapestry.apache.org Betreff: Problems with the UTF-8 standard Hi All, I have the following problem: My html-templates are designed with the UTF-8 standard For example the german 'ä' is coded as 'ä' But if the tapestry engine parses a submit-button component with an 'ä' within the value (or label), this letter isn't parsed as 'ä' but as 'ä' because the '&' is parsed as '&' and the rest as 'auml;' so the complete letter is transformed as '&auml;' and this is the reason for the wrong view. How can I deactivated the automatic parsing of the '&' and show the engine that the value of the submit-button is in UTF-8 standard? The server runs with the UTF-8 standard and I have no chance to change this. The css-file also has the UTF-8 code as every html-template. I'm working with the Version 3.0.3. Thank you very much in advance for your help!! Best regards Mike --------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]