On Tue, 2010-10-05 at 05:26 -0700, mvalencia wrote:
> Hi all
> 
>   I have a problem using the code of:
> org.apache.cocoon.mail.transformation.SendMailTransformer, when I send an
> email, target user always receive the field body with strange characters, so
> seemd bad encoding, and is curious only the field body, the subject is ok.
> 
> I work with encoding UTF-8, and I check Tomcat configuration is good:
>  * parameter: URIEncoding="UTF-8"
>  * SetCharacterEncoding = UTF-8
>  * container-encoding = utf-8
>  *  form-encoding = utf-8
> 
> I check encoding os serializers on Cocoon, too:
> <map:serializer name="xml-utf8" mime-type="text/xml"
> src="org.apache.cocoon.serialization.XMLSerializer">
>   <encoding>UTF-8</encoding>
> </map:serializer >
> <map:serializer name="xhtml"
> src="org.apache.cocoon.serialization.XMLSerializer">
>           <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
>          
> <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
>           <encoding>UTF-8</encoding>
> </map:serializer>
> 
> I only see that There is any problem on AbstractSAXTransformer to recovery
> data from textarea field on HTML, because is the diference between field
> subject and body.

hmm, can you send us the xml that comes in just BEFORE the
SendMailTransformer? Just add <map:serializer/> BEFORE and see whether
there is the correct encoding in the body.

salu2

> 
> Thank you

-- 
Thorsten Scherler <thorsten.at.apache.org>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to