[Catalyst] Catalyst::Controller::REST JSON Serialization/Encoding
alejandro.imass at gmail.com
Mon Sep 28 19:20:35 GMT 2009
Ok. I have verified it's the encoding function's problem, or at least
the encoding problem is in the server, not JQuery or JS.
I dumped the $output just before returning and the output is all
scrambled. My shell and complete locale in Debian is UTF-8 so the
problem seems effectively to be the encode_json function.
On Mon, Sep 28, 2009 at 11:58 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:
> Alejandro Imass wrote:
>> Well, that's it for now, but I can verify that by using to_json it
>> actually solves my encoding problems.
> Well, I have this working fine for me in my environment, but I'm prepared to
> believe it may not work for you, as we do fairly wacky things with uft8 (for
> hysterical raisins)..
> Could you supply a short test to demonstrate feeding some utf8 data in and
> it being double encoded when serialized?
More information about the Catalyst