[dancer-users] Returning JSON Data
WK
wanradt at gmail.com
Mon Sep 14 14:29:19 BST 2015
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 } );
Wbr,
--
Kõike hääd,
Gunnar
More information about the dancer-users
mailing list