I had to insert it to the recent cocoon-distribution(2.03). But it worked immeadiatly and i think it will work without rebuilt in the dev-built as well.
 
 
You can add it to a action-set
 <map:action-sets>
  <map:action-set name="mitarbeiter">
   <map:act type="set-encoding">
    <map:parameter name="form-encoding" value="UTF-8"/>
   </map:act>
   <map:act type="session-validator"/>
   <map:act action="add_mit" type="add-mitarbeiter"/>
   <map:act action="delete_mit" type="del-mitarbeiter"/>
   <map:act action="update_mit" type="upd-mitarbeiter"/>
  </map:action-set>
 </map:action-sets>
 
I don't know if there are other possibilities.
 
Boris
 
----- Original Message -----
Sent: Friday, October 25, 2002 4:58 PM
Subject: Re: encoding problem

I'm using a build from 14 May 2002.  This doesn't have this action
yet.  I'll check a recent build and try that.
Do you mean that I need to add this action at the beginning of EVERY pipeline?

Bert

At 16:55 25/10/2002 +0200, you wrote:
>hy Bert,
>
>we had this problem too.
>look, if the map:actions section contains following:
><map:action name="set-encoding"
>src="org.apache.cocoon.acting.SetCharacterEncodingAction"/>
>
>and at the beginning of a pipeline
><map:act type="set-encoding">
>  <map:parameter name="form-encoding" value="UTF-8"/>
></map:act>
>
>
>That should work.
>
>Boris
>
>
>
>----- Original Message -----
>From: <mailto:[EMAIL PROTECTED]>Bert Van Kets
>To: <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>Sent: Friday, October 25, 2002 1:39 PM
>Subject: encoding problem
>
>Hi all,
>
>I have a mySQL database with varchar fields containing foreign characters
>(ex. ë)  Queries in the mySQL client yield correct results.
>When I do a query using the SQLTransfomer or esql the non ASCII characters
>are not presented properly.  The ë is converted to ë
>
>Here's the pipeline:
><map:match pattern="members/getmemberdata">
>    <map:generate type="serverpages" src="test/test2.xsp"/>
>    <map:transform type="sql">
>      <map:parameter name="use-connection" value="bvar"/>
>    </map:transform>
>    <map:serialize type="xml"/>
></map:match>
>
>All the serializers have the <encoding>UTF-8</encoding> tag.
>The XSP file has a <?xml version="1.0" encoding="UTF-8"?> header.
>
>Isn't UTF-8 the correct encoding for European characters, or is something
>else wrong?
>
>Bert
>
>Using Cocoon 2.1 build 5/14/2002, Tomcat 4.0.1, JDK 1.3.1_02
>
>
>
>
>
>This mail is written in 100% recycled electrons.
>
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before
>posting.
><<http://xml.apache.org/cocoon/faq/index.html>http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe,
>e-mail:
><<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]>
>
>For additional commands,
>e-mail:
><<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to