RE: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Robby Pelssers
You will probably need to encode the characters if you make an ajax call… var somevalue = encodeURIComponent(“this is a value to be encoded”); Robby From: Peter Sparkes [mailto:pe...@didm.co.uk] Sent: Monday, January 14, 2013 3:18 PM To: Cocoon users Subject: Multipage CForm using Ajax

Re: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread gelo1234
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

Re: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Peter Sparkes
Thanks Greg and Robby for your replies. Unfortunately I can't get it to work. I assume encodeURIComponent goes into the flowscript: function multipage() { var lodgeId = cocoon.parameters.lodgeId; cocoon.request.setAttribute(lodgeId, lodgeId); var documentURI =

RE: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Robby Pelssers
Sparkes [mailto:pe...@didm.co.uk] Sent: Monday, January 14, 2013 4:45 PM To: users@cocoon.apache.org Subject: Re: Multipage CForm using Ajax - Non ascii Characters Thanks Greg and Robby for your replies. Unfortunately I can't get it to work. I assume encodeURIComponent goes into the flowscript

Re: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread gelo1234
regards, Robby ** ** ** ** ** ** *From:* Peter Sparkes [mailto:pe...@didm.co.uk pe...@didm.co.uk] *Sent:* Monday, January 14, 2013 4:45 PM *To:* users@cocoon.apache.org *Subject:* Re: Multipage CForm using Ajax - Non ascii Characters ** ** Thanks Greg and Robby for your