Hi Galam,

How do you get the data that is not outputted in the correct encoding?
I haven't seen an explanation of that in your messages, but I am guessing that it is obtained from a file or from something like a database. As a result the data is not read properly and is "mangled" _before_ it reaches the Tapestry layer. "-Dfile.encoding=UTF-8" fixes that by ensuring that UTF-8 is used in input/output even if no encoding is specified explicitly.

A quick explanation of the Tapestry configuration keys that were listed in case they are useful in other cases: "org.apache.tapestry.template-encoding" defines the encoding that Tapestry uses when it reads the templates (the .html files). "org.apache.tapestry.messages-encoding" defines the encoding that Tapestry uses when it reads the .property files. This setting is not normally needed as it defaults to the value of "template-encoding", but it can be defined if needed. "org.apache.tapestry.output-encoding" defines the encoding that Tapestry uses to communicate with the browser. It is UTF-8 by default to cover all "specific" characters and there is normally no reason to change that.

The full list of the configuration parameters is defined here:
http://jakarta.apache.org/tapestry/UsersGuide/configuration.html
and the following may be useful too:
http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization.component-catalog.encoding

-mb

Specifying the encoding in the *.application file doens't work (I've tried
all three encoding options below, none of them work).

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Apache Software Foundation//Tapestry
Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
<application>
   <meta key="org.apache.tapestry.output-encoding" value="UTF-8"/>
   <meta key="org.apache.tapestry.messages-encoding" value="UTF-8"/>
   <meta key="org.apache.tapestry.template-encoding" value="UTF-8"/>
</application>


The only thing that works is by passing the "-Dfile.encoding=UTF-8" option
to the java.exe in the catalina startup script.


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

Reply via email to