On 29 Mar 2010, at 4:29 pm, Mark Allan wrote:
On 29 Mar 2010, at 4:26 pm, Andreas Andreou wrote:

Are you using the the encoding flag of javac ?

I'll have a look. Right now, I'm just using mvn compile so will try and find out what flags it passes to javac.

OK, I've done the following and I still can't get this to do the right thing.

My java files are definitely UTF-8 (no BOM) - I've been through all 47 source files to make sure each and every one is correct.

My Tapestry templates are UTF-8 and each has the following declaration at the top: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

As per http://maven.apache.org/general.html the snippets from my pom.xml file are:

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://maven.apache.org/POM/4.0.0 ">
....
    <build>
        <finalName>TAD</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <optimize>true</optimize>
                    <outputEncoding>UTF-8</outputEncoding>
                </configuration>
            </plugin>
            ....
        </plugins>
    </build>
....
    <properties>
<!-- <tapestry-release-version>5.0.17</tapestry-release- version> -->
        <tapestry-release-version>5.1.0.5</tapestry-release-version>
<project.build.sourceEncoding>UTF-8</ project.build.sourceEncoding>
    </properties>
</project>

In my ~/.profile I have
        MAVEN_OPTS="-Dfile.encoding=ISO-8859-1"
I also tried
        MAVEN_OPTS="-Dfile.encoding=UTF-8"

Whenever I changed the .profile, I logged out and back in again (just an SSH connection), and each time I made any other change, I was careful to issue 'mvn clean && mvn compile' before issuing 'mvn jetty:run'.

No matter what I try, I can't seem to get tapestry (or maven - I'm not sure which I've configured wrongly) to use the correct character encoding.

Cheers
Mark


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


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

Reply via email to