[dancer-users] Returning JSON Data
Kadir Beyazlı
kadirbeyazli at gmail.com
Mon Sep 14 15:03:20 BST 2015
Hi WK,
On Mon, Sep 14, 2015 at 4:29 PM, WK <wanradt at gmail.com> wrote:
> 2015-09-14 15:44 GMT+03:00 Kadir Beyazlı <kadirbeyazli at gmail.com>:
>
>> [KB] I checked, it is UTF-8. But my Turkish characters are still
>> broken. My country's character set is iso-8859-9 but UTF8 was always
>> enough to display correct data.
>> I will search about it.
>
> I had noticed that if I have set STDOUT to have utf-8 encoded (as does
> Dancer) and if JSON is set to use utf-8 (as seems case in Dancer), I
> end up with twice encoded data. So, try like this now:
>
> return to_json( $ref, { utf8 => 0 } );
[KB] It worked! You are genius!
>
> Wbr,
> --
> Kõike hääd,
>
> Gunnar
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
--
Kadir Beyazlı
Computer Engineer
GSM : +90 535 821 50 00
More information about the dancer-users
mailing list