[dancer-users] character encoding

Attila Bárdi attila.bardi at gmail.com
Thu Dec 19 13:27:29 GMT 2013


Hey Hugues,

thanks for the link, I will read it!

Best regards,
Attila


On Thu, Dec 19, 2013 at 9:59 AM, Hugues <hugues at max4mail.com> wrote:

>  Hello
> do you test your result with  Encode::Detect::Detector ?
>
> I use it for RSS feed paser , in same document a part of this is in utf8
> and other part in windows 1252
> or I use Test::utf8::is_sane_utf8 ( some title are twice encoded  )
> see some advice http://juerd.nl/site.plp/perluniadvice
>
> bye
> HB
>
>
>
> Le 19/12/2013 09:50, Attila Bárdi a écrit :
>
>    Hey Gunnar,
>
>  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
> set.
>  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!
>
>  Best regards,
>  Attila
>
>
> 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:
>>
>>  #!/usr/bin/perl
>> 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() )
>> . "\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 at dancer.pm
>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>>
>>
>
>
> _______________________________________________
> dancer-users mailing listdancer-users at dancer.pmhttp://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20131219/2e5af06d/attachment.html>


More information about the dancer-users mailing list