[dancer-users] character encoding
wanradt at gmail.com
Thu Dec 19 08:08:45 GMT 2013
2013/12/19 Attila Bárdi <attila.bardi at gmail.com>
> But I don't know the solution.
You must deal with decoding in your module, but in your script it should
work like this:
binmode STDOUT, 'utf8';
my $somebody = LdapPerson->new();
$somebody = LdapPerson->search('attila.bardi at example.com');
print "displayname: " . decode('utf-8', $somebody->get_displayName() ) .
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dancer-users