You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dirk Dittert <di...@despammed.com> on 2005/06/19 13:10:10 UTC
How to set file encoding/proper way for cross platform development
Hi,
I started developing my first Tapestry web application while reading
through the "Tapestry in Action" book.
My development system is OS X, deployment will be on x86 linux.
Currently, all files are saved with ISO 8859-15 encoding by my IDE to
avoid cross platform encoding issues. File encoding also is declared
properly in the html header.
My files are served properly, if I access them statically by Tomcat
(e.g. http://.../Home.html) but not if I access them through Tapestry
(http://.../app). Tapestry seems to read my files in the native
MacRoman Encoding and then converts them to ISO 8859-15 which is not
what I want (e.g. Umlauts are not rendered properly that way). Of
course, Umlauts are correct if I save the file im MacEncoding. This
will break later when the application is deployed on Linux.
Is there any way to tell Tapestry about the encoding of template html
files? Or is there another approach I should take for cross platform
development?
Best,
Dirk Dittert
--
Don't Program by Coincidence
Rely only on reliable things. Beware of accidental complexity, and
don't confuse a happy coincidence with a purposeful plan.
The Pragmatic Programmer
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to set file encoding/proper way for cross platform development
Posted by Mind Bridge <mi...@yahoo.com>.
Hi,
See this:
http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/configuration.character-sets.html
Basically, place the following in your .application file (for example):
<property name="org.apache.tapestry.template-encoding" value="ISO-8859-1"/>
Use the encoding above that you need.
-mb
----- Original Message -----
From: "Dirk Dittert" <di...@despammed.com>
To: <ta...@jakarta.apache.org>
Sent: Sunday, June 19, 2005 2:10 PM
Subject: How to set file encoding/proper way for cross platform development
> Hi,
>
> I started developing my first Tapestry web application while reading
> through the "Tapestry in Action" book.
>
> My development system is OS X, deployment will be on x86 linux.
> Currently, all files are saved with ISO 8859-15 encoding by my IDE to
> avoid cross platform encoding issues. File encoding also is declared
> properly in the html header.
>
> My files are served properly, if I access them statically by Tomcat
> (e.g. http://.../Home.html) but not if I access them through Tapestry
> (http://.../app). Tapestry seems to read my files in the native
> MacRoman Encoding and then converts them to ISO 8859-15 which is not
> what I want (e.g. Umlauts are not rendered properly that way). Of
> course, Umlauts are correct if I save the file im MacEncoding. This
> will break later when the application is deployed on Linux.
>
> Is there any way to tell Tapestry about the encoding of template html
> files? Or is there another approach I should take for cross platform
> development?
>
> Best,
>
> Dirk Dittert
> --
> Don't Program by Coincidence
> Rely only on reliable things. Beware of accidental complexity, and
> don't confuse a happy coincidence with a purposeful plan.
> The Pragmatic Programmer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org