cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robby Pelssers <Robby.Pelss...@nxp.com>
Subject RE: encoding issue
Date Fri, 31 Aug 2012 08:24:57 GMT
Problem is I'm not using C2.1.x anymore so it's really hard to properly help you out here.

I know that for C2.2 we have to set 2 properties:
org.apache.cocoon.containerencoding=utf-8
org.apache.cocoon.formencoding=utf-8


As a side note: Check encoding in your xslt's

  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

Robby

-----Original Message-----
From: mika@digikartta.net [mailto:mika@digikartta.net] 
Sent: Friday, August 31, 2012 9:33 AM
To: users@cocoon.apache.org
Subject: RE: encoding issue


 Hi,
 yep, if I got you right, problems appear somewhere between the submit 
 and the outcome of the bind, at server side. Container is Tomcat 6.
 Something like this:
 flowscript:
 form.createBinding("cocoon:/form_" + id + "_bind");
 form.save(doc);
 cocoon.sendPage("vastaus-display-pipeline.jx", {title: "blaah, 
 blaah..", document: doc, id: id}

 sitemap:
 (this is for the dynamic binding..)
 <map:match pattern="form_*_bind">
 <map:generate src="cocoon:/kohde{1}">
 </map:generate>
 <map:transform type="xslt" src="kr2form_bind.xslt"/>
 <map:serialize type="xml"/>
 </map:match>

 and:

 <map:match pattern="*-display-pipeline.jx*">
        <map:generate type="jx" src="cocoon:/{1}_templ{2}" 
 label="content1">
          <map:parameter name="locale" value="{flow-attribute:locale}"/>
        </map:generate>
        <map:transform type="browser-update"/><!-- AJAX-style form 
 update -->
        <map:transform type="i18n">
          <map:parameter name="locale" value="{flow-attribute:locale}"/>
        </map:transform>
        <map:call resource="simple-page2html">
          <map:parameter name="file" value="cocoon:/{1}_templ{2}"/>
        </map:call>
        <map:transform src="resources/forms-samples-styling.xsl">
          <map:parameter name="resources-uri" 
 value="{request:contextPath}/_cocoon/resources"/>
          <map:parameter name="dojo-debug" value="false"/>
          <map:parameter name="dojo-locale" value="{flow-attr:locale}"/>
        </map:transform>
        <map:transform type="i18n">
          <map:parameter name="locale" value="{flow-attribute:locale}"/>
        </map:transform>
        <map:select type="ajax-request">
          <map:when test="true"><!-- sending a partial Browser Update 
 -->
             <map:select type="request-parameter">
               <map:parameter name="parameter-name" 
 value="dojo.transport"/>
               <map:when test="iframe"><!-- sending BU via iFrameIO -->
                 <map:transform 
 src="resource://org/apache/cocoon/forms/resources/IframeTransport-bu-styling.xsl"/>
                 <map:serialize type="xhtml"/>
               </map:when>
               <map:otherwise>
                 <map:serialize type="xml"/>
               </map:otherwise>
             </map:select>
          </map:when>
          <map:otherwise>
            <map:serialize type="html"/>
          </map:otherwise>
        </map:select>
 </map:match>

 and the #{$document} in the jx-template has lost scands

 - mika -


 On Fri, 31 Aug 2012 09:19:04 +0200, Robby Pelssers 
 <Robby.Pelssers@nxp.com> wrote:
> Hi Mika,
>
> Some questions:
> - are you having problems submitting forms where the data is not
> received server side as UTF-8?
> - what application container are you using?  Tomcat, Jetty, ...
>
> Robby
>
> -----Original Message-----
> From: mika@digikartta.net [mailto:mika@digikartta.net]
> Sent: Wednesday, August 29, 2012 12:37 PM
> To: users@cocoon.apache.org
> Subject: encoding issue
>
>
>  Hi.
>
>  C2.11 and CForms. I loose scands after binding, they are all 
> replaced
>  by a question mark. I have read all the sites possible to resolve 
> this,
>  but without luck. All is UTF-8, except container-encoding 
> iso-8859-1.
>  Changing container to utf-8 will change the question marks to some 
> other
>  wrong ones and will do other harms.
>  What next? Checking the source code?
>
>  - mika -
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


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

Mime
View raw message