I do some test and found!
1.the data from database is ok for UTF-8 encoding
2.The html page woody gens also UTF-8.
3.after submit,the typed or pasted to field word changed to strange symbols.
So I think it's the problem about java bean about byte and string
conversion.
you can write a function to convert it(How ? I forgot,searching now, may
someone can tell me).
Suggestion! Woody must have the method like the i18n example 'simple.xsp'
the enter of username,can assign the form-encoding attribute to UTF-8.
Best Regards
Johnson
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 11:57 PM
Subject: Unicode, woody, flow script
> I'm trying to solve problem with Unicode chars.
>
> User enters unicode characters into woody forms.
> Strings with unicode chars go into flow as Form class (Woody).
>
> Flow does:
> cocoon.request.setAttribute("my-form", form.getWidget());
> and
> cocoon.sendPage("my-page");
>
> my-page is XSP ServerPage (UTF-16), it use Java to extract values from
forms.
> But here, values taken from Form class (Woody), I mean unicode charters
> (national chars), are already broken.
>
> I think somewhere here unicode chars are flatten into normal 8-bit chars,
> and afterthat are treaten as unicode again. But I have no idea, how to
> solve this problem.
>
> Help needed! Thanks!
>
> ---------------------------------------------------------------------
> 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]