Hi Istvan :-)

Thanks, now I have the WAR, deployed on Tomcat, configured as you
suggested. Unfortunately, I still have encoding issues. Trouble is,
what I need to fix is not the URI encoding, but encoding of the HTTP
response. I seem to be getting content encoded in ISO-8859-2 or
Windows-1250, without any indication of encoding from Tomcat:
===
Server: Apache-Coyote/1.1
Content-Type: text/html
Transfer-Encoding: chunked
Date: Mon, 19 Mar 2007 14:02:10 GMT

200 OK
===

Isn't it Tapestry that tells Tomcat / Jetty what the output encoding should be?

Kofa

On 19/03/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]



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

Reply via email to