I tested on both builds, before and after the MySql fix. Single quotes wont go by without errors.
On Thu, Mar 14, 2013 at 7:15 PM, Louis Charette <[email protected]>wrote: > Are you using the latest source from GitHub? Would be nice to find the > real issue with that. I remember something changed in the server source at > one point regarding encoding. The latest version (before the MySQL fix) was > giving me problem with french accentuated character. I didn't updated my > prod server yet so I can't check right now. > > > - Louis > > Le 2013-03-14 à 13:27, Nicolas <[email protected]> a écrit : > > 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]> 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]> 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] >>> To unsubscribe from this group, send email to >>> ape-project...@**googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/**group/ape-project?hl=en<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 ape-project...@**googlegroups.com. >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<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. > > > > > -- > -- > 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. > > > -- -- 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.
