[dancer-users] character encoding
attila.bardi at gmail.com
Thu Dec 19 08:50:55 GMT 2013
yesterday I also tried this. But it cost nothing to try it again.
If it still does not help I will limit the users to use English character
And after I've implemented all of the function I want to see in the webapp
I can give another try to solve this.
Thanks for your help!
On Thu, Dec 19, 2013 at 9:08 AM, WK <wanradt at gmail.com> wrote:
> 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:
> use strict;
> use warnings;
> use Encode;
> 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.
> Kõike hääd,
> dancer-users mailing list
> dancer-users at dancer.pm
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dancer-users