Wow you were so right on with this! Who’d have guessed that mozilla would try to display JSON in latin charset!? Thank you for your support. Please let me know where I can make a donation to the project. -Robert
On Sep 29, 2015, at 4:31 PM, Russell Jenkins <russell.jenkins@strategicdata.com.au> wrote:
Hi Robert.
Sorry for this terse reply, I've gotta run.
On 29/09/2015 1:54 am, Robert Smith wrote:
It doesn’t "just work” however it seems.
Cut it down to a basic test case. eg:
=== use Dancer2; set serializer => 'JSON'; get '/' => sub { return +{ 1 => { address=> '東京都渋谷区上原2−48', client_id => '1123', id => '1', name => 'WANSecurity, K.K.', }, }; }; dance; ===
Save to a file, and run with plackup.
Again, you need to ensure you get *characters* back from the database. Please read the DBD::Pg docs on the pg_enable_utf8 connection attribute..
Cheers, Russell.
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users