You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sebastian Altmann <al...@isogmbh.de> on 2008/07/07 14:06:00 UTC

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: AW: AW: AW: AW: Strange behavior of special characters

Posted by Sebastian Altmann <al...@isogmbh.de>.
Thank you i will have a look at this.
At the moment we don't have the time to deal with this problem,
but since yesterday we have a clue what is the problem
and probably will be able to resolve this next few days.

I will inform you when i can say exactly what went wrong.


Andreas Andreou wrote:
> 
> Try searching the bug tracker...
> 
> I found
> http://issues.apache.org/jira/browse/TAPESTRY-607 'Output encoding
> problem with some versions of Tomcat 5' (btw, what's your servlet
> container?) and some others that may help...
> 
> For the record, tapestry 3-4 used a custom resourcebundle loader that
> didn't require you to pass the properties through native2ascii... I
> think it used the ending of the file name of the property to determine
> the indended encoding allowing you to use UTF-8 and be done with it...
> That's also the reason why GWT gives credit to Tapestry in Help->About
> (they've reused the code)
> 
> 
> On 7/9/08, Sebastian Altmann <al...@isogmbh.de> wrote:
>>
>>  Ok seems like this won't get me anywhre.
>>
>>  I just can repeat:
>>  All my properties filese are 100% encoded in UTF-8 (checked this in
>> eclipse
>>  and in an external editor) and all umlauts are displayed properly
>> (except in
>>  the special case described above).
>>
>>  To this problem you mentioned concerning Java Properties Files and UTF-8
>>  encoding i just can guess, that it seems that this problem doesn't
>> inflict
>>  the usage of properties inside tapestry.
>>  After i did a lot of testing concerning encoding both on UNIX and
>> Windows
>>  machines,
>>  i just can say that special characters in UTF-8 are display properly
>> (except
>>  in the special case described above) as long you set the concerning meta
>>  information in .application or rather in .library properly.
>>
>>
>>
>>
>>
>>  Maximilian Weißböck wrote:
>>  >
>>  > 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:alt@isogmbh.de]
>>  > 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:alt@isogmbh.de]
>>  >> 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:alt@isogmbh.de]
>>  >>> 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:alt@isogmbh.de]
>>  >>>> 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: users-unsubscribe@tapestry.apache.org
>>  >>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>>>
>>  >>>>
>>  >>>>
>> ---------------------------------------------------------------------
>>  >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  >>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>>>
>>  >>>>
>>  >>>>
>>  >>>
>>  >>> --
>>  >>> 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: users-unsubscribe@tapestry.apache.org
>>  >>> For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>>
>>  >>>
>>  >>>
>> ---------------------------------------------------------------------
>>  >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  >>> For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>>
>>  >>>
>>  >>>
>>  >>
>>  >> --
>>  >> 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: users-unsubscribe@tapestry.apache.org
>>  >> For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>
>>  >>
>>  >> ---------------------------------------------------------------------
>>  >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  >> For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>
>>  >>
>>  >>
>>  >
>>  > --
>>  > 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: users-unsubscribe@tapestry.apache.org
>>  > For additional commands, e-mail: users-help@tapestry.apache.org
>>  >
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  > For additional commands, e-mail: users-help@tapestry.apache.org
>>  >
>>  >
>>  >
>>
>>  --
>>
>> View this message in context:
>> http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18358309.html
>>
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 
> -- 
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18377632.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: AW: AW: AW: AW: Strange behavior of special characters

Posted by Andreas Andreou <an...@gmail.com>.
Try searching the bug tracker...

I found
http://issues.apache.org/jira/browse/TAPESTRY-607 'Output encoding
problem with some versions of Tomcat 5' (btw, what's your servlet
container?) and some others that may help...

For the record, tapestry 3-4 used a custom resourcebundle loader that
didn't require you to pass the properties through native2ascii... I
think it used the ending of the file name of the property to determine
the indended encoding allowing you to use UTF-8 and be done with it...
That's also the reason why GWT gives credit to Tapestry in Help->About
(they've reused the code)


On 7/9/08, Sebastian Altmann <al...@isogmbh.de> wrote:
>
>  Ok seems like this won't get me anywhre.
>
>  I just can repeat:
>  All my properties filese are 100% encoded in UTF-8 (checked this in eclipse
>  and in an external editor) and all umlauts are displayed properly (except in
>  the special case described above).
>
>  To this problem you mentioned concerning Java Properties Files and UTF-8
>  encoding i just can guess, that it seems that this problem doesn't inflict
>  the usage of properties inside tapestry.
>  After i did a lot of testing concerning encoding both on UNIX and Windows
>  machines,
>  i just can say that special characters in UTF-8 are display properly (except
>  in the special case described above) as long you set the concerning meta
>  information in .application or rather in .library properly.
>
>
>
>
>
>  Maximilian Weißböck wrote:
>  >
>  > 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:alt@isogmbh.de]
>  > 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:alt@isogmbh.de]
>  >> 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:alt@isogmbh.de]
>  >>> 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:alt@isogmbh.de]
>  >>>> 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: users-unsubscribe@tapestry.apache.org
>  >>>> For additional commands, e-mail: users-help@tapestry.apache.org
>  >>>>
>  >>>>
>  >>>> ---------------------------------------------------------------------
>  >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  >>>> For additional commands, e-mail: users-help@tapestry.apache.org
>  >>>>
>  >>>>
>  >>>>
>  >>>
>  >>> --
>  >>> 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: users-unsubscribe@tapestry.apache.org
>  >>> For additional commands, e-mail: users-help@tapestry.apache.org
>  >>>
>  >>>
>  >>> ---------------------------------------------------------------------
>  >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  >>> For additional commands, e-mail: users-help@tapestry.apache.org
>  >>>
>  >>>
>  >>>
>  >>
>  >> --
>  >> 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: users-unsubscribe@tapestry.apache.org
>  >> For additional commands, e-mail: users-help@tapestry.apache.org
>  >>
>  >>
>  >> ---------------------------------------------------------------------
>  >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  >> For additional commands, e-mail: users-help@tapestry.apache.org
>  >>
>  >>
>  >>
>  >
>  > --
>  > 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: users-unsubscribe@tapestry.apache.org
>  > For additional commands, e-mail: users-help@tapestry.apache.org
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  > For additional commands, e-mail: users-help@tapestry.apache.org
>  >
>  >
>  >
>
>  --
>
> View this message in context: http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18358309.html
>
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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


Re: AW: AW: AW: AW: Strange behavior of special characters

Posted by Davor Hrg <hr...@gmail.com>.
properties files can not be encoded other than iso1,
you should use natve2acii to convert them.

this might solve your problem

Davor Hrg

On Wed, Jul 9, 2008 at 12:12 PM, Sebastian Altmann <al...@isogmbh.de> wrote:

>
> Ok seems like this won't get me anywhre.
>
> I just can repeat:
> All my properties filese are 100% encoded in UTF-8 (checked this in eclipse
> and in an external editor) and all umlauts are displayed properly (except
> in
> the special case described above).
>
> To this problem you mentioned concerning Java Properties Files and UTF-8
> encoding i just can guess, that it seems that this problem doesn't inflict
> the usage of properties inside tapestry.
> After i did a lot of testing concerning encoding both on UNIX and Windows
> machines,
> i just can say that special characters in UTF-8 are display properly
> (except
> in the special case described above) as long you set the concerning meta
> information in .application or rather in .library properly.
>
>
>
>
> Maximilian Weißböck wrote:
> >
> > 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:alt@isogmbh.de]
> > 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:alt@isogmbh.de]
> >> 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:alt@isogmbh.de]
> >>> 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:alt@isogmbh.de]
> >>>> 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: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>>
> >>>
> >>> --
> >>> 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: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>>
> >>
> >> --
> >> 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: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >
> > --
> > 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18358309.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: AW: AW: AW: AW: Strange behavior of special characters

Posted by Sebastian Altmann <al...@isogmbh.de>.
Ok seems like this won't get me anywhre.

I just can repeat: 
All my properties filese are 100% encoded in UTF-8 (checked this in eclipse
and in an external editor) and all umlauts are displayed properly (except in
the special case described above).

To this problem you mentioned concerning Java Properties Files and UTF-8
encoding i just can guess, that it seems that this problem doesn't inflict
the usage of properties inside tapestry.
After i did a lot of testing concerning encoding both on UNIX and Windows
machines, 
i just can say that special characters in UTF-8 are display properly (except
in the special case described above) as long you set the concerning meta
information in .application or rather in .library properly.
 



Maximilian Weißböck wrote:
> 
> 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:alt@isogmbh.de] 
> 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:alt@isogmbh.de] 
>> 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:alt@isogmbh.de] 
>>> 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:alt@isogmbh.de] 
>>>> 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: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>> 
>>>> 
>>>> 
>>> 
>>> -- 
>>> 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: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>>> 
>>> 
>> 
>> -- 
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> 
> 
> -- 
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Strange-behavior-of-special-characters-tp18315199p18358309.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: AW: AW: AW: Strange behavior of special characters

Posted by Sebastian Altmann <al...@isogmbh.de>.
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:alt@isogmbh.de] 
> 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:alt@isogmbh.de] 
>> 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:alt@isogmbh.de] 
>>> 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: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>>> 
>>> 
>> 
>> -- 
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> 
> 
> -- 
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: AW: Strange behavior of special characters

Posted by Sebastian Altmann <al...@isogmbh.de>.
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:alt@isogmbh.de] 
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: AW: AW: Strange behavior of special characters

Posted by Ulrich Stärk <ul...@spielviel.de>.
>From the java apidocs:

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.

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html

Use native2ascii and you are set.

Uli

Am Di, 8.07.2008, 09:18, schrieb Sebastian Altmann:
>
> 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:alt@isogmbh.de]
>> 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:alt@isogmbh.de]
>>> 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: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>> --
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> --
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



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


Re: AW: AW: Strange behavior of special characters

Posted by Sebastian Altmann <al...@isogmbh.de>.
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:alt@isogmbh.de] 
> 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:alt@isogmbh.de] 
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> 
> 
> -- 
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org