Re: Multipage CForm using Ajax - Non ascii Characters

gelo1234 <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <CAPJaKUrxQ+ZjQtEyKnYzQSyzz7+mraNXjavf17o5YxCN9B1Uaw@mail.gmail.com>
Ajax calls use default character encoding defined by HTTP 1.1 spec (which
iso-8859-1, not UTF-8). You have to encode BEFORE sending and decode AFTER
retrieving those strings.
Encode with encodeURIComponent, decode with decodeURIComponent (if
Javascript).

Greetings,
Greg


2013/1/14 Peter Sparkes <[email protected]>

>  Hi
>
> Cocoon 2.11
>
> I have implemented a multipage CForm which uses Ajax. The form is based on
> the example at
>
>
> http://cocoon.zones.apache.org/cocoon21/samples/blocks/forms/do-multipage.flow
>
> The  form works fine except that it does not save non ascii characters
> correctly eg.
>
> É €  ç  £
>
>
> If I use one very long form without Ajax the above characters are
> correctly saved
>
> Help please, How can I fix this problem
>
>
> Peter
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.