cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bert Van Kets <b...@vankets.com>
Subject Re: encoding problem
Date Fri, 25 Oct 2002 14:58:24 GMT
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:bert@vankets.com>Bert Van Kets
>To: <mailto:cocoon-users@xml.apache.org>cocoon-users@xml.apache.org
>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:cocoon-users-unsubscribe@xml.apache.org>cocoon-users-unsubscribe@xml.apache.org>

>
>For additional commands, 
>e-mail: 
><<mailto:cocoon-users-help@xml.apache.org>cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message