You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sp...@spamsucks.com on 2006/09/05 13:00:01 UTC

BORDER component encoding

I'm trying to make my border component to output HTML in the appropriate
encoding. This is not the localization issue, just the matter of making my
component output in Unicode.

The template itself ( the one that is "bordered" by Border ) is outputting
correct Unicode, but the border component itself outputs gibberish when
working with non-English text. It's all looks very similar to my problems
when I was trying to make ordinary Tapestry templates output Unicode. Back
then I had to add -Dfile.encoding=UTF-8 to my jdk parameters and add
following to my .application file :

  <meta key="org.apache.tapestry.messages-encoding" value="UTF-8"/>
  <meta key="org.apache.tapestry.template-encoding" value="Cp1251"/>
  <meta key="org.apache.tapestry.output-encoding" value="UTF-8"/>

Is there something similar for .jwc or .library file ? Does anyone have any
clue as to how to make a component output Unicode ?

Thank you.

Environment : Tapestry 4.0 , Tomcat 5.5.16, jdk 1.6

----------------------------------------------------------------------------
----------------------------------
ets.application
----------------------------------------------------------------------------
----------------------------------
**DOCTYPE omitted
<application name="ets"
engine-class="org.apache.tapestry.engine.BaseEngine">
    
  <description>add a description</description>

	<meta key="org.apache.tapestry.page-class-packages"
value="ets,ets.base,ets.Search"/>
	
	<library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
	<library id="tacos"
specification-path="/net/sf/tacos/Tacos.library"/>
	<library id="base" specification-path="/ets/base/Base.library"/>

  <meta key="org.apache.tapestry.messages-encoding" value="UTF-8"/>
  <meta key="org.apache.tapestry.template-encoding" value="Cp1251"/>
	<meta key="org.apache.tapestry.output-encoding" value="UTF-8"/>

</application>

----------------------------------------------------------------------------
----------------------------------
Base.library
----------------------------------------------------------------------------
----------------------------------
**DOCTYPE omitted
<library-specification>

  <meta key="org.apache.tapestry.component-class-packages"
value="ets.base"/>

  <library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
  <component-type type="Border" specification-path="Border.jwc"/>
</library-specification>

----------------------------------------------------------------------------
----------------------------------
ets.application
----------------------------------------------------------------------------
----------------------------------
**DOCTYPE omitted
<component-specification allow-body="yes" allow-informal-parameters="no">

	<asset name="stylesheet" path="css/ts.css"/>

</component-specification>

----------------------------------------------------------------------------
----------------------------------


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