As I know it is better to write:
AttilaBest regards,Hey Gunnar,this is it. I don't remember what did I do yesterday night and why it was not working, but now I tested it and it is perfect!
The solution was what you wrote: just omit setting the binmode STDOUT, 'utf8'; and use the rest. And that is it.
I would like to thank all of you for your help!On Thu, Dec 19, 2013 at 9:08 AM, WK <wanradt@gmail.com> wrote:
You must deal with decoding in your module, but in your script it should work like this:#!/usr/bin/perluse strict;use warnings;use Encode;binmode STDOUT, 'utf8';print "displayname: " . decode('utf-8', $somebody->get_displayName() ) . "\n"In Dancer you must omit setting binmode on STDOUT, because Dancer sets it itself. Hope it gives some hints how to deal with such problem.--
Wbr,Kõike hääd,
Gunnar
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users