You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Malin Ljungh <ma...@kvadrat.se> on 2006/10/27 21:00:39 UTC
Encoding of properties files
Guys, I really need your help tonight.
I've been struggeling for days and I can't solve this.
This is the thing:
I have swedish characters in my properties files (localized app). I can not
get these to be displayed correctly :[
If I put the special characters directly in the html it works fine. If I put
the special characters in my java source and display it with a @Insert it
works fine. -But not if they are in the properties file.
Any suggestions?
Please please please... I'll be your slave ;)
Re: Encoding of properties files
Posted by Martin Strand <ma...@entcap.se>.
Japp.
1. Go to Preferences-->General-->Content types
2. Select Text-->Java properties file
3. Change the default encoding at the bottom
Martin
On Sat, 28 Oct 2006 12:45:08 +0200, Malin Ljungh <ma...@kvadrat.se>
wrote:
> Thank you thank you thank you!!! Tack ;)
>
> It works :D *happy*
>
> Though, I had to go in manually on the file properties and change it to
> UTF8
> in Eclipse. I guess I can change the default somewhere ...?
>
> Malin
>
>
> On 10/28/06, Martin Strand <ma...@entcap.se> wrote:
>>
>> This is true for regular ResourceBundles, but not for Tapestry message
>> catalogs.
>> With Tapestry you can use any encoding, just make sure the file's
>> encoding
>> matches the "org.apache.tapestry.messages-encoding" setting. Like this:
>>
>> <meta key="org.apache.tapestry.messages-encoding" value="utf-8"/>
>>
>> and then make sure Eclipse saves all *.properties as UTF-8
>>
>> Martin
>>
>> On Sat, 28 Oct 2006 10:47:09 +0200, Firas Adiler <ta...@idigna.com>
>> wrote:
>>
>> > Malin,
>> >
>> > It has nothing to do with Tomcat. It's a Java thing, really.
>> Properties
>> > files are not unicode, wich means that non-ASCII characters need to be
>> > encoded. Usually your IDE should take care of this for you (in
>> Netbeans
>> > this
>> > support is built-in).
>> >
>> > In Eclipse I'd recommend Eclipse ResourceBundle Editor:
>> > http://sourceforge.net/projects/eclipse-rbe/
>> >
>> > A stand-alone app with similar features Zaval:
>> > http://www.zaval.org/products/jrc-editor/
>> >
>> >
>> > Regards,
>> >
>> > </Firas>
>> >
>> > -----Original Message-----
>> > From: Malin Ljungh [mailto:malin.ljungh@kvadrat.se]
>> > Sent: Friday, October 27, 2006 9:50 PM
>> > To: Tapestry users
>> > Subject: Re: Encoding of properties files
>> >
>> > I had it working earlier on another server (which I don't have access
>> to
>> > anymore) so I shouldn't need to manipulate the files. I thought it
>> would
>> > be
>> > something with the Tomcat config maybe?
>> >
>> > I use Tapestry 4.
>> >
>> >
>> > On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>> >>
>> >> Konstantin Ignatyev wrote:
>> >> > property files need to be encoded to ascii with native2ascii
>> >> >
>> http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.ht
>> >> > ml
>> >> >
>> >>
>> >> They normally have to ( i use a property editor plugin that does this
>> >> on the fly ), but tapestry can determine the correct encoding (from
>> >> the filename i
>> >> think)
>> >> and make them work as is...
>> >>
>> >> I don't remember if that's a Tap4-only feature however.
>> >>
>> >> >
>> >> > --- Malin Ljungh <ma...@kvadrat.se> wrote:
>> >> >
>> >> >
>> >> >> Home_sv.properties has the special characters.
>> >> >>
>> >> >> And I use Tomcat.
>> >> >>
>> >> >>
>> >> >> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>> >> >>
>> >> >>> Assuming you're working on Home.html, which file contains your
>> >> >>> swedish characters?
>> >> >>>
>> >> >>>
>> >> >>> Malin Ljungh wrote:
>> >> >>>
>> >> >>>> Guys, I really need your help tonight.
>> >> >>>> I've been struggeling for days and I can't solve
>> >> >>>>
>> >> >> this.
>> >> >>
>> >> >>>> This is the thing:
>> >> >>>> I have swedish characters in my properties files
>> >> >>>>
>> >> >> (localized app). I
>> >> >>
>> >> >>>> can not
>> >> >>>> get these to be displayed correctly :[
>> >> >>>>
>> >> >>>> If I put the special characters directly in the
>> >> >>>>
>> >> >> html it works fine. If
>> >> >>
>> >> >>>> I put
>> >> >>>> the special characters in my java source and
>> >> >>>>
>> >> >> display it with a @Insert
>> >> >>
>> >> >>> it
>> >> >>>
>> >> >>>> works fine. -But not if they are in the
>> >> >>>>
>> >> >> properties file.
>> >> >>
>> >> >>>> Any suggestions?
>> >> >>>> Please please please... I'll be your slave ;)
>> >> >>>>
>> >> >>>>
>> >> >>> --
>> >> >>> Andreas Andreou - andyhot@apache.org -
>> >> >>>
>> >> >> http://andyhot.di.uoa.gr
>> >> >>
>> >> >>> Tapestry / Tacos developer
>> >> >>> Open Source / J2EE Consulting
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >
>> --------------------------------------------------------------------
>> >> > -
>> >> >
>> >> >>> To unsubscribe, e-mail:
>> >> >>>
>> >> >> users-unsubscribe@tapestry.apache.org
>> >> >>
>> >> >>> For additional commands, e-mail:
>> >> >>>
>> >> >> users-help@tapestry.apache.org
>> >> >>
>> >> >>>
>> >> >
>> >> >
>> >> > Konstantin Ignatyev
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > PS: If this is a typical day on planet earth, humans will add
>> >> > fifteen
>> >> million tons of carbon to the atmosphere, destroy 115 square miles of
>> >> tropical rainforest, create seventy-two miles of desert, eliminate
>> >> between forty to one hundred species, erode seventy-one million tons
>> >> of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase
>> >> their population by 263,000
>> >> >
>> >> > Bowers, C.A. The Culture of Denial: Why the Environmental
>> Movement
>> >> Needs a Strategy for Reforming Universities and Public Schools. New
>> >> York: State University of New York Press, 1997: (4) (5) (p.206)
>> >> >
>> >> >
>> --------------------------------------------------------------------
>> >> > - 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://andyhot.di.uoa.gr
>> >> Tapestry / Tacos developer Open Source / J2EE Consulting
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: Encoding of properties files
Posted by Malin Ljungh <ma...@kvadrat.se>.
Thank you thank you thank you!!! Tack ;)
It works :D *happy*
Though, I had to go in manually on the file properties and change it to UTF8
in Eclipse. I guess I can change the default somewhere ...?
Malin
On 10/28/06, Martin Strand <ma...@entcap.se> wrote:
>
> This is true for regular ResourceBundles, but not for Tapestry message
> catalogs.
> With Tapestry you can use any encoding, just make sure the file's encoding
> matches the "org.apache.tapestry.messages-encoding" setting. Like this:
>
> <meta key="org.apache.tapestry.messages-encoding" value="utf-8"/>
>
> and then make sure Eclipse saves all *.properties as UTF-8
>
> Martin
>
> On Sat, 28 Oct 2006 10:47:09 +0200, Firas Adiler <ta...@idigna.com>
> wrote:
>
> > Malin,
> >
> > It has nothing to do with Tomcat. It's a Java thing, really. Properties
> > files are not unicode, wich means that non-ASCII characters need to be
> > encoded. Usually your IDE should take care of this for you (in Netbeans
> > this
> > support is built-in).
> >
> > In Eclipse I'd recommend Eclipse ResourceBundle Editor:
> > http://sourceforge.net/projects/eclipse-rbe/
> >
> > A stand-alone app with similar features Zaval:
> > http://www.zaval.org/products/jrc-editor/
> >
> >
> > Regards,
> >
> > </Firas>
> >
> > -----Original Message-----
> > From: Malin Ljungh [mailto:malin.ljungh@kvadrat.se]
> > Sent: Friday, October 27, 2006 9:50 PM
> > To: Tapestry users
> > Subject: Re: Encoding of properties files
> >
> > I had it working earlier on another server (which I don't have access to
> > anymore) so I shouldn't need to manipulate the files. I thought it would
> > be
> > something with the Tomcat config maybe?
> >
> > I use Tapestry 4.
> >
> >
> > On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
> >>
> >> Konstantin Ignatyev wrote:
> >> > property files need to be encoded to ascii with native2ascii
> >> > http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.ht
> >> > ml
> >> >
> >>
> >> They normally have to ( i use a property editor plugin that does this
> >> on the fly ), but tapestry can determine the correct encoding (from
> >> the filename i
> >> think)
> >> and make them work as is...
> >>
> >> I don't remember if that's a Tap4-only feature however.
> >>
> >> >
> >> > --- Malin Ljungh <ma...@kvadrat.se> wrote:
> >> >
> >> >
> >> >> Home_sv.properties has the special characters.
> >> >>
> >> >> And I use Tomcat.
> >> >>
> >> >>
> >> >> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
> >> >>
> >> >>> Assuming you're working on Home.html, which file contains your
> >> >>> swedish characters?
> >> >>>
> >> >>>
> >> >>> Malin Ljungh wrote:
> >> >>>
> >> >>>> Guys, I really need your help tonight.
> >> >>>> I've been struggeling for days and I can't solve
> >> >>>>
> >> >> this.
> >> >>
> >> >>>> This is the thing:
> >> >>>> I have swedish characters in my properties files
> >> >>>>
> >> >> (localized app). I
> >> >>
> >> >>>> can not
> >> >>>> get these to be displayed correctly :[
> >> >>>>
> >> >>>> If I put the special characters directly in the
> >> >>>>
> >> >> html it works fine. If
> >> >>
> >> >>>> I put
> >> >>>> the special characters in my java source and
> >> >>>>
> >> >> display it with a @Insert
> >> >>
> >> >>> it
> >> >>>
> >> >>>> works fine. -But not if they are in the
> >> >>>>
> >> >> properties file.
> >> >>
> >> >>>> Any suggestions?
> >> >>>> Please please please... I'll be your slave ;)
> >> >>>>
> >> >>>>
> >> >>> --
> >> >>> Andreas Andreou - andyhot@apache.org -
> >> >>>
> >> >> http://andyhot.di.uoa.gr
> >> >>
> >> >>> Tapestry / Tacos developer
> >> >>> Open Source / J2EE Consulting
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> > --------------------------------------------------------------------
> >> > -
> >> >
> >> >>> To unsubscribe, e-mail:
> >> >>>
> >> >> users-unsubscribe@tapestry.apache.org
> >> >>
> >> >>> For additional commands, e-mail:
> >> >>>
> >> >> users-help@tapestry.apache.org
> >> >>
> >> >>>
> >> >
> >> >
> >> > Konstantin Ignatyev
> >> >
> >> >
> >> >
> >> >
> >> > PS: If this is a typical day on planet earth, humans will add
> >> > fifteen
> >> million tons of carbon to the atmosphere, destroy 115 square miles of
> >> tropical rainforest, create seventy-two miles of desert, eliminate
> >> between forty to one hundred species, erode seventy-one million tons
> >> of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase
> >> their population by 263,000
> >> >
> >> > Bowers, C.A. The Culture of Denial: Why the Environmental Movement
> >> Needs a Strategy for Reforming Universities and Public Schools. New
> >> York: State University of New York Press, 1997: (4) (5) (p.206)
> >> >
> >> > --------------------------------------------------------------------
> >> > - 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://andyhot.di.uoa.gr
> >> Tapestry / Tacos developer Open Source / J2EE Consulting
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Encoding of properties files
Posted by Martin Strand <ma...@entcap.se>.
This is true for regular ResourceBundles, but not for Tapestry message
catalogs.
With Tapestry you can use any encoding, just make sure the file's encoding
matches the "org.apache.tapestry.messages-encoding" setting. Like this:
<meta key="org.apache.tapestry.messages-encoding" value="utf-8"/>
and then make sure Eclipse saves all *.properties as UTF-8
Martin
On Sat, 28 Oct 2006 10:47:09 +0200, Firas Adiler <ta...@idigna.com>
wrote:
> Malin,
>
> It has nothing to do with Tomcat. It's a Java thing, really. Properties
> files are not unicode, wich means that non-ASCII characters need to be
> encoded. Usually your IDE should take care of this for you (in Netbeans
> this
> support is built-in).
>
> In Eclipse I'd recommend Eclipse ResourceBundle Editor:
> http://sourceforge.net/projects/eclipse-rbe/
>
> A stand-alone app with similar features Zaval:
> http://www.zaval.org/products/jrc-editor/
>
>
> Regards,
>
> </Firas>
>
> -----Original Message-----
> From: Malin Ljungh [mailto:malin.ljungh@kvadrat.se]
> Sent: Friday, October 27, 2006 9:50 PM
> To: Tapestry users
> Subject: Re: Encoding of properties files
>
> I had it working earlier on another server (which I don't have access to
> anymore) so I shouldn't need to manipulate the files. I thought it would
> be
> something with the Tomcat config maybe?
>
> I use Tapestry 4.
>
>
> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>>
>> Konstantin Ignatyev wrote:
>> > property files need to be encoded to ascii with native2ascii
>> > http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.ht
>> > ml
>> >
>>
>> They normally have to ( i use a property editor plugin that does this
>> on the fly ), but tapestry can determine the correct encoding (from
>> the filename i
>> think)
>> and make them work as is...
>>
>> I don't remember if that's a Tap4-only feature however.
>>
>> >
>> > --- Malin Ljungh <ma...@kvadrat.se> wrote:
>> >
>> >
>> >> Home_sv.properties has the special characters.
>> >>
>> >> And I use Tomcat.
>> >>
>> >>
>> >> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>> >>
>> >>> Assuming you're working on Home.html, which file contains your
>> >>> swedish characters?
>> >>>
>> >>>
>> >>> Malin Ljungh wrote:
>> >>>
>> >>>> Guys, I really need your help tonight.
>> >>>> I've been struggeling for days and I can't solve
>> >>>>
>> >> this.
>> >>
>> >>>> This is the thing:
>> >>>> I have swedish characters in my properties files
>> >>>>
>> >> (localized app). I
>> >>
>> >>>> can not
>> >>>> get these to be displayed correctly :[
>> >>>>
>> >>>> If I put the special characters directly in the
>> >>>>
>> >> html it works fine. If
>> >>
>> >>>> I put
>> >>>> the special characters in my java source and
>> >>>>
>> >> display it with a @Insert
>> >>
>> >>> it
>> >>>
>> >>>> works fine. -But not if they are in the
>> >>>>
>> >> properties file.
>> >>
>> >>>> Any suggestions?
>> >>>> Please please please... I'll be your slave ;)
>> >>>>
>> >>>>
>> >>> --
>> >>> Andreas Andreou - andyhot@apache.org -
>> >>>
>> >> http://andyhot.di.uoa.gr
>> >>
>> >>> Tapestry / Tacos developer
>> >>> Open Source / J2EE Consulting
>> >>>
>> >>>
>> >>>
>> >>>
>> > --------------------------------------------------------------------
>> > -
>> >
>> >>> To unsubscribe, e-mail:
>> >>>
>> >> users-unsubscribe@tapestry.apache.org
>> >>
>> >>> For additional commands, e-mail:
>> >>>
>> >> users-help@tapestry.apache.org
>> >>
>> >>>
>> >
>> >
>> > Konstantin Ignatyev
>> >
>> >
>> >
>> >
>> > PS: If this is a typical day on planet earth, humans will add
>> > fifteen
>> million tons of carbon to the atmosphere, destroy 115 square miles of
>> tropical rainforest, create seventy-two miles of desert, eliminate
>> between forty to one hundred species, erode seventy-one million tons
>> of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase
>> their population by 263,000
>> >
>> > Bowers, C.A. The Culture of Denial: Why the Environmental Movement
>> Needs a Strategy for Reforming Universities and Public Schools. New
>> York: State University of New York Press, 1997: (4) (5) (p.206)
>> >
>> > --------------------------------------------------------------------
>> > - 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://andyhot.di.uoa.gr
>> Tapestry / Tacos developer Open Source / J2EE Consulting
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Encoding of properties files
Posted by Firas Adiler <ta...@idigna.com>.
Malin,
It has nothing to do with Tomcat. It's a Java thing, really. Properties
files are not unicode, wich means that non-ASCII characters need to be
encoded. Usually your IDE should take care of this for you (in Netbeans this
support is built-in).
In Eclipse I'd recommend Eclipse ResourceBundle Editor:
http://sourceforge.net/projects/eclipse-rbe/
A stand-alone app with similar features Zaval:
http://www.zaval.org/products/jrc-editor/
Regards,
</Firas>
-----Original Message-----
From: Malin Ljungh [mailto:malin.ljungh@kvadrat.se]
Sent: Friday, October 27, 2006 9:50 PM
To: Tapestry users
Subject: Re: Encoding of properties files
I had it working earlier on another server (which I don't have access to
anymore) so I shouldn't need to manipulate the files. I thought it would be
something with the Tomcat config maybe?
I use Tapestry 4.
On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>
> Konstantin Ignatyev wrote:
> > property files need to be encoded to ascii with native2ascii
> > http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.ht
> > ml
> >
>
> They normally have to ( i use a property editor plugin that does this
> on the fly ), but tapestry can determine the correct encoding (from
> the filename i
> think)
> and make them work as is...
>
> I don't remember if that's a Tap4-only feature however.
>
> >
> > --- Malin Ljungh <ma...@kvadrat.se> wrote:
> >
> >
> >> Home_sv.properties has the special characters.
> >>
> >> And I use Tomcat.
> >>
> >>
> >> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
> >>
> >>> Assuming you're working on Home.html, which file contains your
> >>> swedish characters?
> >>>
> >>>
> >>> Malin Ljungh wrote:
> >>>
> >>>> Guys, I really need your help tonight.
> >>>> I've been struggeling for days and I can't solve
> >>>>
> >> this.
> >>
> >>>> This is the thing:
> >>>> I have swedish characters in my properties files
> >>>>
> >> (localized app). I
> >>
> >>>> can not
> >>>> get these to be displayed correctly :[
> >>>>
> >>>> If I put the special characters directly in the
> >>>>
> >> html it works fine. If
> >>
> >>>> I put
> >>>> the special characters in my java source and
> >>>>
> >> display it with a @Insert
> >>
> >>> it
> >>>
> >>>> works fine. -But not if they are in the
> >>>>
> >> properties file.
> >>
> >>>> Any suggestions?
> >>>> Please please please... I'll be your slave ;)
> >>>>
> >>>>
> >>> --
> >>> Andreas Andreou - andyhot@apache.org -
> >>>
> >> http://andyhot.di.uoa.gr
> >>
> >>> Tapestry / Tacos developer
> >>> Open Source / J2EE Consulting
> >>>
> >>>
> >>>
> >>>
> > --------------------------------------------------------------------
> > -
> >
> >>> To unsubscribe, e-mail:
> >>>
> >> users-unsubscribe@tapestry.apache.org
> >>
> >>> For additional commands, e-mail:
> >>>
> >> users-help@tapestry.apache.org
> >>
> >>>
> >
> >
> > Konstantin Ignatyev
> >
> >
> >
> >
> > PS: If this is a typical day on planet earth, humans will add
> > fifteen
> million tons of carbon to the atmosphere, destroy 115 square miles of
> tropical rainforest, create seventy-two miles of desert, eliminate
> between forty to one hundred species, erode seventy-one million tons
> of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase
> their population by 263,000
> >
> > Bowers, C.A. The Culture of Denial: Why the Environmental Movement
> Needs a Strategy for Reforming Universities and Public Schools. New
> York: State University of New York Press, 1997: (4) (5) (p.206)
> >
> > --------------------------------------------------------------------
> > - 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://andyhot.di.uoa.gr
> Tapestry / Tacos developer Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> 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: Encoding of properties files
Posted by Malin Ljungh <ma...@kvadrat.se>.
I had it working earlier on another server (which I don't have access to
anymore) so I shouldn't need to manipulate the files. I thought it would be
something with the Tomcat config maybe?
I use Tapestry 4.
On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>
> Konstantin Ignatyev wrote:
> > property files need to be encoded to ascii with
> > native2ascii
> > http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.html
> >
>
> They normally have to ( i use a property editor plugin that does this on
> the fly ),
> but tapestry can determine the correct encoding (from the filename i
> think)
> and make them work as is...
>
> I don't remember if that's a Tap4-only feature however.
>
> >
> > --- Malin Ljungh <ma...@kvadrat.se> wrote:
> >
> >
> >> Home_sv.properties has the special characters.
> >>
> >> And I use Tomcat.
> >>
> >>
> >> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
> >>
> >>> Assuming you're working on Home.html,
> >>> which file contains your swedish characters?
> >>>
> >>>
> >>> Malin Ljungh wrote:
> >>>
> >>>> Guys, I really need your help tonight.
> >>>> I've been struggeling for days and I can't solve
> >>>>
> >> this.
> >>
> >>>> This is the thing:
> >>>> I have swedish characters in my properties files
> >>>>
> >> (localized app). I
> >>
> >>>> can not
> >>>> get these to be displayed correctly :[
> >>>>
> >>>> If I put the special characters directly in the
> >>>>
> >> html it works fine. If
> >>
> >>>> I put
> >>>> the special characters in my java source and
> >>>>
> >> display it with a @Insert
> >>
> >>> it
> >>>
> >>>> works fine. -But not if they are in the
> >>>>
> >> properties file.
> >>
> >>>> Any suggestions?
> >>>> Please please please... I'll be your slave ;)
> >>>>
> >>>>
> >>> --
> >>> Andreas Andreou - andyhot@apache.org -
> >>>
> >> http://andyhot.di.uoa.gr
> >>
> >>> Tapestry / Tacos developer
> >>> Open Source / J2EE Consulting
> >>>
> >>>
> >>>
> >>>
> > ---------------------------------------------------------------------
> >
> >>> To unsubscribe, e-mail:
> >>>
> >> users-unsubscribe@tapestry.apache.org
> >>
> >>> For additional commands, e-mail:
> >>>
> >> users-help@tapestry.apache.org
> >>
> >>>
> >
> >
> > Konstantin Ignatyev
> >
> >
> >
> >
> > PS: If this is a typical day on planet earth, humans will add fifteen
> million tons of carbon to the atmosphere, destroy 115 square miles of
> tropical rainforest, create seventy-two miles of desert, eliminate between
> forty to one hundred species, erode seventy-one million tons of topsoil, add
> 2,700 tons of CFCs to the stratosphere, and increase their population by
> 263,000
> >
> > Bowers, C.A. The Culture of Denial: Why the Environmental Movement
> Needs a Strategy for Reforming Universities and Public Schools. New
> York: State University of New York Press, 1997: (4) (5) (p.206)
> >
> > ---------------------------------------------------------------------
> > 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://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Encoding of properties files
Posted by andyhot <an...@di.uoa.gr>.
Konstantin Ignatyev wrote:
> property files need to be encoded to ascii with
> native2ascii
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.html
>
They normally have to ( i use a property editor plugin that does this on
the fly ),
but tapestry can determine the correct encoding (from the filename i think)
and make them work as is...
I don't remember if that's a Tap4-only feature however.
>
> --- Malin Ljungh <ma...@kvadrat.se> wrote:
>
>
>> Home_sv.properties has the special characters.
>>
>> And I use Tomcat.
>>
>>
>> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>>
>>> Assuming you're working on Home.html,
>>> which file contains your swedish characters?
>>>
>>>
>>> Malin Ljungh wrote:
>>>
>>>> Guys, I really need your help tonight.
>>>> I've been struggeling for days and I can't solve
>>>>
>> this.
>>
>>>> This is the thing:
>>>> I have swedish characters in my properties files
>>>>
>> (localized app). I
>>
>>>> can not
>>>> get these to be displayed correctly :[
>>>>
>>>> If I put the special characters directly in the
>>>>
>> html it works fine. If
>>
>>>> I put
>>>> the special characters in my java source and
>>>>
>> display it with a @Insert
>>
>>> it
>>>
>>>> works fine. -But not if they are in the
>>>>
>> properties file.
>>
>>>> Any suggestions?
>>>> Please please please... I'll be your slave ;)
>>>>
>>>>
>>> --
>>> Andreas Andreou - andyhot@apache.org -
>>>
>> http://andyhot.di.uoa.gr
>>
>>> Tapestry / Tacos developer
>>> Open Source / J2EE Consulting
>>>
>>>
>>>
>>>
> ---------------------------------------------------------------------
>
>>> To unsubscribe, e-mail:
>>>
>> users-unsubscribe@tapestry.apache.org
>>
>>> For additional commands, e-mail:
>>>
>> users-help@tapestry.apache.org
>>
>>>
>
>
> Konstantin Ignatyev
>
>
>
>
> PS: If this is a typical day on planet earth, humans will add fifteen million tons of carbon to the atmosphere, destroy 115 square miles of tropical rainforest, create seventy-two miles of desert, eliminate between forty to one hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase their population by 263,000
>
> Bowers, C.A. The Culture of Denial: Why the Environmental Movement Needs a Strategy for Reforming Universities and Public Schools. New York: State University of New York Press, 1997: (4) (5) (p.206)
>
> ---------------------------------------------------------------------
> 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://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Encoding of properties files
Posted by Konstantin Ignatyev <kg...@yahoo.com>.
property files need to be encoded to ascii with
native2ascii
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.html
--- Malin Ljungh <ma...@kvadrat.se> wrote:
> Home_sv.properties has the special characters.
>
> And I use Tomcat.
>
>
> On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
> >
> > Assuming you're working on Home.html,
> > which file contains your swedish characters?
> >
> >
> > Malin Ljungh wrote:
> > > Guys, I really need your help tonight.
> > > I've been struggeling for days and I can't solve
> this.
> > >
> > > This is the thing:
> > > I have swedish characters in my properties files
> (localized app). I
> > > can not
> > > get these to be displayed correctly :[
> > >
> > > If I put the special characters directly in the
> html it works fine. If
> > > I put
> > > the special characters in my java source and
> display it with a @Insert
> > it
> > > works fine. -But not if they are in the
> properties file.
> > >
> > > Any suggestions?
> > > Please please please... I'll be your slave ;)
> > >
> >
> >
> > --
> > Andreas Andreou - andyhot@apache.org -
> http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / J2EE Consulting
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail:
> users-help@tapestry.apache.org
> >
> >
>
Konstantin Ignatyev
PS: If this is a typical day on planet earth, humans will add fifteen million tons of carbon to the atmosphere, destroy 115 square miles of tropical rainforest, create seventy-two miles of desert, eliminate between forty to one hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase their population by 263,000
Bowers, C.A. The Culture of Denial: Why the Environmental Movement Needs a Strategy for Reforming Universities and Public Schools. New York: State University of New York Press, 1997: (4) (5) (p.206)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Encoding of properties files
Posted by Malin Ljungh <ma...@kvadrat.se>.
Home_sv.properties has the special characters.
And I use Tomcat.
On 10/27/06, andyhot <an...@di.uoa.gr> wrote:
>
> Assuming you're working on Home.html,
> which file contains your swedish characters?
>
>
> Malin Ljungh wrote:
> > Guys, I really need your help tonight.
> > I've been struggeling for days and I can't solve this.
> >
> > This is the thing:
> > I have swedish characters in my properties files (localized app). I
> > can not
> > get these to be displayed correctly :[
> >
> > If I put the special characters directly in the html it works fine. If
> > I put
> > the special characters in my java source and display it with a @Insert
> it
> > works fine. -But not if they are in the properties file.
> >
> > Any suggestions?
> > Please please please... I'll be your slave ;)
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Encoding of properties files
Posted by andyhot <an...@di.uoa.gr>.
Assuming you're working on Home.html,
which file contains your swedish characters?
Malin Ljungh wrote:
> Guys, I really need your help tonight.
> I've been struggeling for days and I can't solve this.
>
> This is the thing:
> I have swedish characters in my properties files (localized app). I
> can not
> get these to be displayed correctly :[
>
> If I put the special characters directly in the html it works fine. If
> I put
> the special characters in my java source and display it with a @Insert it
> works fine. -But not if they are in the properties file.
>
> Any suggestions?
> Please please please... I'll be your slave ;)
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org