Thanks Ashley, that did indeed fix the JSON problem! (wish I'd remembered to write a test *before* I fixed it like this though ;-)
cheers Daniel On Jan 7, 2008 9:28 PM, Ashley Pond V <[EMAIL PROTECTED]> wrote: > This may or may not be germane: try installing JSON::XS and updating > your JSON and JSON::Any. JSON::XS is one of, if not the, fastest > serializers in all data classes and its utf8 handling is better. JSON > now, IIRC, calls it if it's present instead of its older Perl version. > > -Ashley > > On Jan 7, 2008, at 7:57 AM, Daniel McBrearty wrote: > > > Data is actually sent in URI encoded utf8 (looks like "ab%C3%A7 > > ...."), which is fine. The string is then picked up, decoded and > > stored in the db just fine. The problem is that what gets sent back > > the other way (via Catalyst::View::JSON ) is not getting encoded. I > > don't know quite why just now (according to the docs it should do). > > Manually adding the Encode::encode_utf8( $result ) step fixes it for > > now. I may try peeking to see why it doesn't get handled by the View. > > > _______________________________________________ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > -- Daniel McBrearty email : danielmcbrearty at gmail.com http://www.engoi.com http://danmcb.vox.com http://danmcb.blogger.com find me on linkedin and facebook BTW : 0873928131 _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/