<div dir="ltr"><div><div>Hey Hugues,<br><br>thanks for the link, I will read it!<br><br></div>Best regards,<br></div>Attila<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 19, 2013 at 9:59 AM, Hugues <span dir="ltr"><<a href="mailto:hugues@max4mail.com" target="_blank">hugues@max4mail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hello<br>
    do you test your result with  Encode::Detect::Detector ?<br>
    <br>
    I use it for RSS feed paser , in same document a part of this is in
    utf8 and other part in windows 1252<br>
    or I use Test::utf8::is_sane_utf8 ( some title are twice encoded  )
    <br>
    see some advice <a href="http://juerd.nl/site.plp/perluniadvice" target="_blank">http://juerd.nl/site.plp/perluniadvice</a><br>
    <br>
    bye<br>
    HB<br>
    <br>
    <br>
    <br>
    <div>Le 19/12/2013 09:50, Attila Bárdi a
      écrit :<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Hey Gunnar,<br>
                    <br>
                  </div>
                  yesterday I also tried this. But it cost nothing to
                  try it again.<br>
                  <br>
                </div>
                If it still does not help I will limit the users to use
                English character set.<br>
              </div>
              And after I've implemented all of the function I want to
              see in the webapp I can give another try to solve this.<br>
              <br>
            </div>
            Thanks for your help!<br>
            <br>
          </div>
          Best regards,<br>
        </div>
        Attila<br>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Thu, Dec 19, 2013 at 9:08 AM, WK <span dir="ltr"><<a href="mailto:wanradt@gmail.com" target="_blank">wanradt@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_extra">
                <div class="gmail_quote">
                  <div>2013/12/19 Attila Bárdi <span dir="ltr"><<a href="mailto:attila.bardi@gmail.com" target="_blank">attila.bardi@gmail.com</a>></span><br>
                    <div> </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>But I don't know the solution.</div>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                  </div>
                  <div>You must deal with decoding in your module, but
                    in your script it should work like this:</div>
                  <div><br>
                  </div>
                  <div>#!/usr/bin/perl</div>
                  <div>use strict;</div>
                  <div>use warnings;</div>
                  <div>use Encode;</div>
                  <div>binmode STDOUT, 'utf8';</div>
                  <div>
                    <div><br>
                    </div>
                    <div>my $somebody = LdapPerson->new();</div>
                    <div>$somebody = LdapPerson->search('<a href="mailto:attila.bardi@example.com" target="_blank">attila.bardi@example.com</a>');</div>
                  </div>
                  <div>print "displayname: " .
                    decode('utf-8', $somebody->get_displayName() ) .
                    "\n"</div>
                  <div><br>
                  </div>
                  <div>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.</div>
                  <span><font color="#888888">
                    </font></span></div>
                <span><font color="#888888">
                    <div><br>
                    </div>
                    -- <br>
                    Wbr,</font></span></div>
              <span><font color="#888888">
                  <div class="gmail_extra">Kõike hääd,<br>
                    <br>
                    Gunnar</div>
                </font></span></div>
            <br>
            _______________________________________________<br>
            dancer-users mailing list<br>
            <a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
            <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
dancer-users mailing list
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>