Skip Menu |

This queue is for tickets about the Catalyst-Plugin-AutoCRUD CPAN distribution.

Report information
The Basics
Id: 58483
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-AutoCRUD

People
Owner: OLIVER [...] cpan.org
Requestors: XSAWYERX [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Encoding on AJAX interface not allowing non-English chars :(
I want to use this amazing software with Hebrew data. However, when using the AJAX screen (which enabled editing - what I need), the Hebrew appears as jibbrish. I assume it's the encoding's fault. In the non-AJAX interface (which does _not_ allow editing), this does not occur. Please oh please fix it! :) Thanks, Sawyer.
Subject: Re: [rt.cpan.org #58483] Encoding on AJAX interface not allowing non-English chars :(
Date: Thu, 17 Jun 2010 14:41:51 +0100
To: bug-Catalyst-Plugin-AutoCRUD [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Sawyer, On 17/06/2010 14:17, Sawyer X via RT wrote: Show quoted text
> However, when using the AJAX screen (which enabled editing - what I > need), the Hebrew appears as jibbrish. I assume it's the encoding's fault.
Yes I would very much like to fix this myself as well!! Please could you let me know which version of the module you are using - there is a Developer release on CPAN which I would like you to test, please: 0.71_02 regards, oliver. - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwaJh8ACgkQ2NPq7pwWBt7seQCfVDRSyUxU8IiR2lX0TGfNdMkN 568AoMbg4YBqrY07mNsYq9v3vb7X2zpt =7ksa -----END PGP SIGNATURE-----
On Thu Jun 17 09:42:06 2010, oliver.gorwits@oucs.ox.ac.uk wrote: Show quoted text
> > Please could you let me know which version of the module you are > using - there is a Developer release on CPAN which I would like you > to test, please: 0.71_02
I was using the production version, but now tried the development version (0.71_02) and unfortunately it's still not okay. I'm willing to provide you with access to data encoded in Hebrew, if you want, and try out any development version you wish. Let me know if I can help in any way, Sawyer.
Subject: Re: [rt.cpan.org #58483] Encoding on AJAX interface not allowing non-English chars :(
Date: Tue, 22 Jun 2010 09:48:46 +0100
To: bug-Catalyst-Plugin-AutoCRUD [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Sawyer, On 22/06/2010 09:45, Sawyer X via RT wrote: Show quoted text
> I was using the production version, but now tried the development > version (0.71_02) and unfortunately it's still not okay.
Okay that's a pity - but thanks for testing and letting me know. Show quoted text
> I'm willing to provide you with access to data encoded in Hebrew, if you > want, and try out any development version you wish.
Yes having access to the data would be very useful and speed things up for me. I won't have time to look at it this week, but next week I will have time. If you want to mail me details outside of this RT system, use my address <oliver.gorwits@oucs.ox.ac.uk>. regards, - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwgeO4ACgkQ2NPq7pwWBt63GACffdQk00dd9GrDsN4exK/9Uu3T D40An1Lr+bmLMx8R52Gz+hG+0rUnFZKm =cwoA -----END PGP SIGNATURE-----
I have just been emailed the following from "shirirulestheworld" (apologies for the correspondence on this ticket but RT.cpan does not seem to permit plain ticket comments): Hi, Thank you for this great software! I was having a problem with japanese not being displayed properly via the extjs interface. It seems that the package needs to set the encoding latin1 and use JSON::XS to avoid any problems. Perhaps JSON::PP is find too though. But using JSON::Any might switch to JSON::Sticky which might have encoding troubles. utf8 seems to not work but latin1 works just fine... Anyhow, the fix below allowed me to display Japanese properly. Hope it can help: package Catalyst::Plugin::AutoCRUD::View::JSON; use strict; use warnings FATAL => 'all'; use base 'Catalyst::View::JSON'; use JSON::XS (); sub encode_json { my($self, $c, $data) = @_; my $encoder = JSON::XS->new->latin1->allow_nonref; $encoder->encode($data); } __PACKAGE__->config( expose_stash => 'json_data', ); 1;
On Thu Jun 17 09:17:23 2010, xsawyerx wrote: Show quoted text
> I want to use this amazing software with Hebrew data. > > However, when using the AJAX screen (which enabled editing - what I > need), the Hebrew appears as jibbrish. I assume it's the encoding's fault.
I have uploaded a new version v1.110470 of AutoCRUD to CPAN with a fix for encoding issues. Please let me know how you get on. -- regards, oliver.