Thanks for your reply.
the problem both occurs with fields and string output like:
<component id="paintingTitle" type="Insert">
<binding name="value" expression="painting.paintingTitle"/>
</component>
also it occurs without using mysql, too. for instance, using the tapestry
workbench example "fields", if I input special characters, they come out
garbled as well (back into the input field)
On 31.10.2002 20:58 Uhr, "Andrus Adamchik" <[EMAIL PROTECTED]>
wrote:
> Hi Chris,
>
> What component are you using that displays *incorrect* characters? Is it
> still the form field, or is this just text (Insert component?).
>
> Andrus
>
> Chris Schwarzfischer writes:
>
>> 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
>
>
- - - - - - - - - - - -
Chris Schwarzfischer
- - - - nwt.ac - - - -
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer