Hi,

I'm currently evaluating tapestry and cayenne an alternative to WO5.1 but
can't figure out the necessary character conversions.
after reading the posts about unicode and tapestry I still can't figure out
what went wrong:

I built the cayenne-tapestry-example and let it run
When input german umlaut chars (like ���) into one of the forms, it gets
written into the database.
When the record is shown on the following page the umlaut char is displayed
as two completely different (also special) chars.
My debugging output (in the setters and getters) shows, that the char is
written into the java object as unicode, then to the database and after that
correctly retrieved from the database (mysql) as unicode again. This leads
me to the conclusion that something is going really wrong with the
transformation between tapestry and the html output. This behavior also
shows up in the workbench example.

the changes I made are as follows:
I tried overriding get ResponseWriter
    public IMarkupWriter getResponseWriter(OutputStream out) {
        HTMLWriter writer = new HTMLWriter("text/html; charset=iso-8859-1",
out);
        return writer;
    }

I also tried: 

    public IMarkupWriter getResponseWriter(OutputStream out) {
        HTMLWriter writer = new HTMLWriter("text/html; charset=utf-8", out);
        return writer;
    }

but no difference.
the forms on the page are enctype="multipart/form-data

TIA

System: MacOS X 10.2, Tomcat 4.1.12 JDK 1.3.1 or 1.4.1 (tried both), mysql
3.23.53a max

- - - - - - - - - - - -
 Chris Schwarzfischer
- - - - nwt.ac - - - -




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to