It seems to be working for the moment.

For others' reference, I have copied your solution on Core.js like this:

I have replaced this bit:

if (raws) {
raws = JSON.parse(raws); 
if (!raws){ // Something went wrong, json decode failed
this.check();
return;
}


by this piece of code:


        if (raws)
        {
                        try
                        {
                            raws = JSON.parse(raws);
                        }
                        catch(e)
                        {
                            //Temporary FIX for malformed JSON with escaped 
single quotes
                            raws = raws.replace(/\\'/g, "'");
                            try 
                            {
                                    raws = JSON.parse(raws);
                            }
                            catch(e)
                            {
                                this.check();
return;
                            }
                        }



Le jeudi 14 mars 2013 16:50:49 UTC, Pablo a écrit :
>
> Most likely in the server code as the problem also occurs while using 
> websocket as the transport method. 
> On Mar 14, 2013 12:46 PM, "Louis Charette" 
> <[email protected]<javascript:>> 
> wrote:
>
>> Make sense. I don't encode before sending also.
>>
>> Pablo, any idea where the encoding fail in the first place? Server C code 
>> or in the JSF?
>>
>> Envoyé de mon iPhone
>>
>> Le 2013-03-14 à 12:37, Nicolas <[email protected] <javascript:>> a 
>> écrit :
>>
>> > I think APE already does the encoding itself when sending. So one needs 
>> to decode but not encode (I  remember pointing out this weird behaviour at 
>> the time, probably more than one year ago).
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "APE Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>> 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to