[Catalyst] Re: [Dbix-class] Re: utf8 / pg double encoding problem
Ashley Pond V
apv at sedition.com
Mon Jan 7 20:28:11 GMT 2008
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.
More information about the Catalyst
mailing list