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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> >> Home_sv.properties has the special characters.
>> >>
>> >> And I use Tomcat.
>> >>
>> >>
>> >> On 10/27/06, andyhot <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] -
>> >>>
>> >> http://andyhot.di.uoa.gr
>> >>
>> >>> Tapestry / Tacos developer
>> >>> Open Source / J2EE Consulting
>> >>>
>> >>>
>> >>>
>> >>>
>> > --------------------------------------------------------------------
>> > -
>> >
>> >>> To unsubscribe, e-mail:
>> >>>
>> >> [EMAIL PROTECTED]
>> >>
>> >>> For additional commands, e-mail:
>> >>>
>> >> [EMAIL PROTECTED]
>> >>
>> >>>
>> >
>> >
>> > 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: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>>
>> --
>> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
>> Tapestry / Tacos developer Open Source / J2EE Consulting
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to