I'm very sure the property files that work are not utf-8 encoded but iso-8895-1 encoded.
You can use ÄÖÜß and so on with no problem in property files (we do it), just be very sure they are iso-8895-1 encoded. If you use Eclipse, right click on the file, open Properties and look at the Text file Encoding. Max -----Ursprüngliche Nachricht----- Von: Sebastian Altmann [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 8. Juli 2008 15:11 An: users@tapestry.apache.org Betreff: Re: AW: AW: AW: Strange behavior of special characters Sorry but I just don't get it... After you mentioned the first time that there are problems concerning properties files in UTF-8 I also found this and similar articles on the sam topic. I would quietly accept this, if my special characters were displayed wrong all over the application and in other applications too, but i can't understand why this should be a general Java problem even though in 99% of cases my special characters are displayed properly. Maximilian Weißböck wrote: > > "The load and store methods load and store properties in a simple > line-oriented format specified below. This format uses the ISO 8859-1 > character encoding. Characters that cannot be directly represented in this > encoding can be written using Unicode escapes ; only a single 'u' > character is allowed in an escape sequence. The native2ascii tool can be > used to convert property files to and from other character encodings." > > from http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html > > Max > > -----Ursprüngliche Nachricht----- > Von: Sebastian Altmann [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 8. Juli 2008 09:19 > An: users@tapestry.apache.org > Betreff: Re: AW: AW: Strange behavior of special characters > > > Yes I'm reading my values from properties files which are utf-8 encoded, > but what really confuses me is that you tell me they aren't allowed i > utf-8. > > Because we're running an application with utf-8 properties-files without > any > problems. > > This strange behavior can only be found in anatoher application. > > > > > Maximilian Weißböck wrote: >> >> Do you read this values from a property file? >> Property files in Java may not be utf-8 encoded. >> The have to be iso-8859-1 encoded. >> Many thanks to Sun ... >> >> Max >> >> >> -----Ursprüngliche Nachricht----- >> Von: Sebastian Altmann [mailto:[EMAIL PROTECTED] >> Gesendet: Montag, 7. Juli 2008 14:54 >> An: users@tapestry.apache.org >> Betreff: Re: AW: Strange behavior of special characters >> >> >> No i didn't because i am using tapestry 4.0.2 (forgot to mention this >> :-(() >> but i read similar atricles on tapestry 4. >> >> The weird thing is that my encoding basically is ok, >> and this strange things happen just under certain circumstances. >> >> Another thing that confuses me is that for example in "löschen" not just >> the >> ö isn't displayed correct >> but also the 3 following characters (sch). >> This happens to every string with special characters (mostly not the next >> 3 >> but the next 2 characters ). >> >> >> >> Maximilian Weißböck wrote: >>> >>> Did you have a look at >>> http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding >>> >>> Max >>> >>> >>> -----Ursprüngliche Nachricht----- >>> Von: Sebastian Altmann [mailto:[EMAIL PROTECTED] >>> Gesendet: Montag, 7. Juli 2008 14:06 >>> An: users@tapestry.apache.org >>> Betreff: Strange behavior of special characters >>> >>> >>> Hi, >>> >>> we provide our tapestry application in two languages (german and >>> english) >>> which work quite fine but with one problem. >>> >>> The problem is, that special characters used in german (like ö, ü, ä) >>> are >>> displayed wrong the first time i access a page (in this case i get >>> "l?en" >>> instead of "löschen" för example). >>> If i do a refresh on the page or just navigate to another page all my >>> special characters are displayed correct all over the application. >>> >>> My first suspicion was that this is some kind of browser problem, >>> because the page's sourcecode is identic before and after refresh. >>> >>> But my browser encoding is UTF-8 in both cases which is ok. >>> By the way i tried both firefox and ie and always get the same wrong >>> behavior. >>> >>> Another point which confuses me is that we are developping more than one >>> tapestry application >>> and this just happens at one of them. >>> >>> Does anybody know more about this problem? >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18315199.html >>> Sent from the Tapestry - User mailing list archive at Nabble.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] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18316032.html >> Sent from the Tapestry - User mailing list archive at Nabble.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] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18333329.html > Sent from the Tapestry - User mailing list archive at Nabble.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] > > > -- View this message in context: http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18338889.html Sent from the Tapestry - User mailing list archive at Nabble.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]