Hello Davon!

You are right.
It is only work in tapestry 4.x.

These files created in my "tapestry-hilo" application:
1. Edit.html
----- >8 ----
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
<head>
<title>Edit</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<p>Szöveg: ${szoveg}</p>
<p>Árvíztűrő kútfúró!</p>
</body>
</html>
---- 8< -----

2. Edit.java
----- 8< ----
package org.example.hilo.pages;

public class Edit {
        public String getSzoveg() {
                return "Árvíztűrő kútfúrógép!";
        }
}
----- >8 ----

And i see this in the web browser (http://localhost/hilo/edit):
Szöveg: ??rv?­zt?±r?? k??tf??r??g?©p!

Árvízt?r? kútfúró!

Sorry Kofa... it isnt the solution.

Best Regards
Stef

> -----Original Message-----
> From: [EMAIL PROTECTED]
> Sent: Mon, 19 Mar 2007 14:51:10 +0100
> To: users@tapestry.apache.org
> Subject: Re: Tapestry 5 - Jetty - ISO-8859-1 instead of UTF-8; deploying
> 
> none of those options worked for me in T5,
> nor template text nor text from database
> (text from database displays correctly in the console)
> 
> Davor Hrg
> 
> On 3/19/07, Istvan Szucs <[EMAIL PROTECTED]> wrote:
>> 
>> Deploy mavenized project:
>> 1. pom.xml: <packaging>war</packaging>
>> 2. command prompt: mvn deploy
>> 3. You have a *.war file in your 'project/target' directory.
>> 
>> Open tomcat manager and deploy your *.war file with admin role.
>> 
>> Jetty: ???
>> 
>> ---------
>> 
>> Jetty + UTF-8: -Dorg.mortbay.util.URI.charset=UTF-8
>> 
>> Tomcat + utf-8:
>> Update the file $CATALINA_HOME/conf/server.xml for UTF-8 support by
>> connectors. Example:
>> <Connector port="8080" maxThreads="150" minSpareThreads="25"
>> maxSpareThreads="75" enableLookups="false" redirectPort="8443"
>> acceptCount="100" debug="0" connectionTimeout="20000"
>> disableUploadTimeout="true" URIEncoding="UTF-8"/>
>> 
>> Eclipse + UTF-8 (1):
>> Right click on the context folder / Properties -> Text file encoding ->
>> Other - UTF-8
>> 
>> Eclipse + UTF-8 (2):
>> Window / Preferences / General / Content types -> all type default
>> encoding: UTF-8 (java source, html, xml)
>> 
>> XML + UTF-8: All xml start with tis line '<?xml version="1.0"
>> encoding="UTF-8"?>'
>> 
>> HTML + UTF-8: in the <head> tag -> <meta http-equiv="content-type"
>> content="text/html; charset=utf-8">
>> 
>> Use this JAVA_OPTS: -Dfile.encoding=UTF-8
>> 
>> And finally: everywhere UTF-8...
>> 
>> 
>> 
>> Best regards
>> Stef
>> 
>> ps: Encoding? Only the non-english user have to change... :-)
>> 
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> Sent: Mon, 19 Mar 2007 10:34:27 +0000
>>> To: users@tapestry.apache.org
>>> Subject: Tapestry 5 - Jetty - ISO-8859-1 instead of UTF-8; deploying
>>> 
>>> Hi,
>>> 
>>> I've built an application using the quickstart Maven prototype. It all
>>> works fine, but serves the output in ISO-8859-1 (Latin-1), not UTF-8.
>>> Kent Tongs book on Tapestry 4 says "Tapestry always use UTF-8 to
>>> encode the output, regardless the encoding of the template". This
>>> seems to have changed - how do I set the encoding?
>>> 
>>> The other question is: once I'm done, and I want to give the compiled
>>> application to others to test, how do I deploy it? The maven build
>>> does everything (downloads Jetty, packages, deploys - I have no idea
>>> where), but how do I get an archive that I can share?
>>> 
>>> TIA,
>>> Kofa
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> ____________________________________________________________
>> KEEP SPYWARE OFF YOUR COMPUTER - Protect your computer with Spyware
>> Terminator!
>> Visit http://www.spywareterminator.com/install and find out more!
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>>

____________________________________________________________
Invite Friends to View Your Photo Album and 
... Win Free iPods, Movie Tickets or 1GB of Storage. 
Check it out http://www.inbox.com/win_iPod

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

Reply via email to