<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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 class="moz-txt-link-freetext" href="http://juerd.nl/site.plp/perluniadvice">http://juerd.nl/site.plp/perluniadvice</a><br>
    <br>
    bye<br>
    HB<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 19/12/2013 09:50, Attila Bárdi a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAB0qUeKZTS0u3hAmnF5yPw+=+508biN8oVpmHY=fqxDTo1ZQfw@mail.gmail.com"
      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 moz-do-not-send="true"
              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 class="im">2013/12/19 Attila Bárdi <span
                      dir="ltr"><<a moz-do-not-send="true"
                        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 class="im">
                    <div><br>
                    </div>
                    <div>my $somebody = LdapPerson->new();</div>
                    <div>$somebody = LdapPerson->search('<a
                        moz-do-not-send="true"
                        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 class="HOEnZb"><font color="#888888">
                    </font></span></div>
                <span class="HOEnZb"><font color="#888888">
                    <div><br>
                    </div>
                    -- <br>
                    Wbr,</font></span></div>
              <span class="HOEnZb"><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 moz-do-not-send="true"
              href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
            <a moz-do-not-send="true"
              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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dancer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a>
<a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>