Re: problem displaying german umlaute
Hi there, I had a similar problem. It looks like it is not possible to write the umlauts correctly in java code itself. If you use a properties file instead (which you obviously already configured) the strings read from there will work fine. In your code try something like return getMessages().getMessage("yourMessageName"); instead of hardcoding the translation into the code. Hope it helps Daniel On Dec 16, 2007, at 2:31 AM, Matt Brock wrote: Andy Pahne-3 wrote: I have a problem with a german web application which doesn't show german umlaute like ä ö ü correctly. You could try using the HTML entity instead. Not the ideal solution, I know... Ü -> Ü ü -> ü http://www.utexas.edu/learn/html/spchar.html More here . -- View this message in context: http://www.nabble.com/problem-displaying-german-umlaute-tp14291940p14357234.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]
Re: problem displaying german umlaute
Andy Pahne-3 wrote: > > I have a problem with a german web application which doesn't show german > umlaute like ä ö ü correctly. You could try using the HTML entity instead. Not the ideal solution, I know... Ü -> Ü ü -> ü http://www.utexas.edu/learn/html/spchar.html More here . -- View this message in context: http://www.nabble.com/problem-displaying-german-umlaute-tp14291940p14357234.html Sent from the Tapestry - User mailing list archive at Nabble.com.
AW: problem displaying german umlaute
If you use Java property files, there is something very special. Property files in Java loaded by the default class loader may NOT be encoded in UTF-8. They always must be encoded in ISO-8859-1 or you have to use Unicode escape sequences. See: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html Max > -Ursprüngliche Nachricht- > Von: Andy Pahne [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 12. Dezember 2007 12:16 > An: Tapestry users > Betreff: Re: problem displaying german umlaute > > > I already added -Dfile.encoding=utf-8 to the tomcat options. > I am currently trying the solution that Salamon posted, I'll let you > know if that works... > > Andy > > > Lukas Ruetz schrieb: > > Hi, > > > > If all your property-files are encoded in UTF-8 then it's maybe your > > servlet-container - in case of tomcat try to start it with the > > option "-Dfile.encoding=utf-8". I'm using T4.0 but I think there's > > no difference in 4.1 > > > > hth, > > lukas > > > > Am Mittwoch, 12. Dezember 2007 10:46 schrieb Andy Pahne: > >> Hello, > >> > >> I have a problem with a german web application which > doesn't show german > >> umlaute like ä ö ü correctly. > >> > >> When those special chars appear in a template, everythings > works fine. > >> But when I have a method in a page class like > >> > >>public String getHeader(){ > >>return "Übernachtungen"; > >>} > >> > >> then it won't show correctly. > >> > >> > >> I don't think that this is a tapestry problem (or a bug), > but I hope > >> that anybody on this list knows how to fix it. > >> > >> Here are some Details > >> > >> Tapestry 4.1.3 > >> Java 1.6 > >> Windows XP Host > >> Tomcat 5.x > >> > >> >from my *.application: > >> > >> value="UTF-8"/> > >> > >> I am developing with Eclipse and double checked that all > the files arte > >> encoded in UTF-8. > >> > >> > >> Can anybody help or point me to the right direction? > >> > >> Thanks, > >> Andy > > > > > - > > 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] > > > This email was Anti Virus checked by Astaro Security Gateway. > http://www.astaro.com > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem displaying german umlaute
I already added -Dfile.encoding=utf-8 to the tomcat options. I am currently trying the solution that Salamon posted, I'll let you know if that works... Andy Lukas Ruetz schrieb: Hi, If all your property-files are encoded in UTF-8 then it's maybe your servlet-container - in case of tomcat try to start it with the option "-Dfile.encoding=utf-8". I'm using T4.0 but I think there's no difference in 4.1 hth, lukas Am Mittwoch, 12. Dezember 2007 10:46 schrieb Andy Pahne: Hello, I have a problem with a german web application which doesn't show german umlaute like ä ö ü correctly. When those special chars appear in a template, everythings works fine. But when I have a method in a page class like public String getHeader(){ return "Übernachtungen"; } then it won't show correctly. I don't think that this is a tapestry problem (or a bug), but I hope that anybody on this list knows how to fix it. Here are some Details Tapestry 4.1.3 Java 1.6 Windows XP Host Tomcat 5.x >from my *.application: I am developing with Eclipse and double checked that all the files arte encoded in UTF-8. Can anybody help or point me to the right direction? Thanks, Andy - 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]
Re: problem displaying german umlaute
Hi, If all your property-files are encoded in UTF-8 then it's maybe your servlet-container - in case of tomcat try to start it with the option "-Dfile.encoding=utf-8". I'm using T4.0 but I think there's no difference in 4.1 hth, lukas Am Mittwoch, 12. Dezember 2007 10:46 schrieb Andy Pahne: > Hello, > > I have a problem with a german web application which doesn't show german > umlaute like ä ö ü correctly. > > When those special chars appear in a template, everythings works fine. > But when I have a method in a page class like > >public String getHeader(){ >return "Übernachtungen"; >} > > then it won't show correctly. > > > I don't think that this is a tapestry problem (or a bug), but I hope > that anybody on this list knows how to fix it. > > Here are some Details > > Tapestry 4.1.3 > Java 1.6 > Windows XP Host > Tomcat 5.x > > >from my *.application: > > > > I am developing with Eclipse and double checked that all the files arte > encoded in UTF-8. > > > Can anybody help or point me to the right direction? > > Thanks, > Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem displaying german umlaute
I think you should use the tapestry localization capabilities. If you create or not a properties file, you should use unicode escapes characters in place of normal german characters. example: Übernachtungen=\u00dcbernachtungen Every not english character have an equivalent unicode escape character. ä=00e4 ö=00f6 ü=00fc On Dec 12, 2007, at 10:46, Andy Pahne wrote: Hello, I have a problem with a german web application which doesn't show german umlaute like ä ö ü correctly. When those special chars appear in a template, everythings works fine. But when I have a method in a page class like public String getHeader(){ return "Übernachtungen"; } then it won't show correctly. I don't think that this is a tapestry problem (or a bug), but I hope that anybody on this list knows how to fix it. Here are some Details Tapestry 4.1.3 Java 1.6 Windows XP Host Tomcat 5.x from my *.application: I am developing with Eclipse and double checked that all the files arte encoded in UTF-8. Can anybody help or point me to the right direction? Thanks, Andy - 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]
problem displaying german umlaute
Hello, I have a problem with a german web application which doesn't show german umlaute like ä ö ü correctly. When those special chars appear in a template, everythings works fine. But when I have a method in a page class like public String getHeader(){ return "Übernachtungen"; } then it won't show correctly. I don't think that this is a tapestry problem (or a bug), but I hope that anybody on this list knows how to fix it. Here are some Details Tapestry 4.1.3 Java 1.6 Windows XP Host Tomcat 5.x from my *.application: I am developing with Eclipse and double checked that all the files arte encoded in UTF-8. Can anybody help or point me to the right direction? Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]