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 -----
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>

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

Reply via email to